build: prepare v4.3.0-dev #3680
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: DevOps | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "**/*" | |
| - "!.github/**" # Important: Exclude PRs related to .github from auto-run | |
| - "!.github/workflows/**" # Important: Exclude PRs related to .github/workflows from auto-run | |
| - "!.github/actions/**" # Important: Exclude PRs related to .github/actions from auto-run | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "**/*" | |
| - "!.github/**" # Important: Exclude PRs related to .github from auto-run | |
| - "!.github/workflows/**" # Important: Exclude PRs related to .github/workflows from auto-run | |
| - "!.github/actions/**" # Important: Exclude PRs related to .github/actions from auto-run | |
| # Pull requests touching .github are excluded from the automatic runs above, | |
| # since the workflow definition that would run is the one from the pull | |
| # request. This is the deliberate way to run the chain for them anyway, by | |
| # someone with write access. The job conditions below allow for it. | |
| workflow_dispatch: | |
| # Cancel any in-progress runs when a new commit is pushed | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| check_paths: | |
| uses: ./.github/workflows/check_paths.yml | |
| spell_check: | |
| needs: check_paths | |
| if: needs.check_paths.outputs.githubfolder == 'false' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/spell_check.yml | |
| ensure_linting: | |
| needs: | |
| - check_paths | |
| - spell_check | |
| if: needs.check_paths.outputs.githubfolder == 'false' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/ensure_linting.yml | |
| elixir_dep_verification_and_static_analysis: | |
| needs: | |
| - check_paths | |
| - ensure_linting | |
| if: needs.check_paths.outputs.githubfolder == 'false' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/elixir_dep_verification_and_static_analysis.yml | |
| elixir_test: | |
| needs: | |
| - check_paths | |
| - ensure_linting | |
| if: needs.check_paths.outputs.githubfolder == 'false' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/elixir_test.yml |