chore: sync files with beam-community/common-config #232
Workflow file for this run
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
| # This file is synced with beam-community/common-config. Any changes will be overwritten. | |
| name: CI | |
| on: | |
| merge_group: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| push: | |
| branches: | |
| - main | |
| workflow_call: | |
| secrets: | |
| GH_PERSONAL_ACCESS_TOKEN: | |
| required: true | |
| workflow_dispatch: | |
| concurrency: | |
| group: CI ${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| Credo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
| elixir-version: "1.19" | |
| otp-version: "27.0" | |
| - run: mix deps.get | |
| - name: Credo | |
| run: mix credo --strict | |
| Dependencies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
| elixir-version: "1.19" | |
| otp-version: "27.0" | |
| - run: mix deps.get | |
| - name: Unused | |
| run: mix deps.unlock --check-unused | |
| Dialyzer: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
| elixir-version: "1.19" | |
| otp-version: "27.0" | |
| - run: mix deps.get | |
| - name: Dialyzer | |
| run: mix dialyzer --format github | |
| Format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
| elixir-version: "1.19" | |
| otp-version: "27.0" | |
| - run: mix deps.get | |
| - name: Format | |
| run: mix format --check-formatted | |
| Test: | |
| name: Test (Elixir ${{ matrix.versions.elixir }} OTP ${{ matrix.versions.otp }}) | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: test | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{ matrix.versions.elixir }} | |
| github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
| otp-version: ${{ matrix.versions.otp }} | |
| - run: mix deps.get | |
| - name: Compile | |
| run: mix compile --warnings-as-errors | |
| - name: Test | |
| run: mix test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| versions: | |
| - elixir: 1.17 | |
| otp: 27 | |
| - elixir: 1.18 | |
| otp: 27 | |
| - elixir: 1.19 | |
| otp: 27 | |