release 3.0.4 #46
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}}) | |
| runs-on: ubuntu-20.04 | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| MIX_ENV: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - elixir: "1.18.1" | |
| otp: "27.1" | |
| lint: lint | |
| - elixir: "1.17.3" | |
| otp: "25.0.4" | |
| - elixir: "1.14.5" | |
| otp: "23.3.4.20" | |
| steps: | |
| - name: Clone the repository | |
| uses: actions/checkout@v2 | |
| - name: Install OTP and Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{matrix.otp}} | |
| elixir-version: ${{matrix.elixir}} | |
| - name: Install and compile dependencies | |
| run: | | |
| mix deps.get --only test | |
| mix deps.compile | |
| - name: Check no unused dependencies | |
| run: mix deps.get && mix deps.unlock --check-unused | |
| if: ${{ matrix.lint == 'true' }} | |
| - name: Compile with --warnings-as-errors | |
| run: mix compile --warnings-as-errors | |
| if: ${{ matrix.lint }} | |
| - name: Run tests | |
| run: mix test --trace | |
| if: ${{ !matrix.coverage }} | |
| - name: Run tests with coverage | |
| run: mix coveralls.github | |
| if: ${{ matrix.coverage }} | |
| - name: Dump Docker logs on failure | |
| uses: jwalton/gh-docker-logs@v1 | |
| if: failure() |