feat: add code action for the ParenthesesOnZeroArityDefs check #183
Workflow file for this run
This file contains 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: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
name: Tests (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}} | Credo ${{matrix.credo}}) | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
otp: [23.x, 24.x, 25.x, 26.x] | |
elixir: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x] | |
credo: [1.6.7, 1.7.0] | |
exclude: | |
- otp: 26.x | |
elixir: 1.11.x | |
- otp: 26.x | |
elixir: 1.12.x | |
- otp: 26.x | |
elixir: 1.13.x | |
- otp: 25.x | |
elixir: 1.11.x | |
- otp: 25.x | |
elixir: 1.12.x | |
- otp: 23.x | |
elixir: 1.15.x | |
env: | |
CREDO_LOCKFILE: ../../../lockfiles/mix-credo-${{matrix.credo}}.lock | |
CI: true | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}- | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: mix deps.get --only test | |
- name: Start EPMD | |
run: epmd -daemon | |
- name: Compile test project | |
env: | |
MIX_ENV: credolsp | |
run: (cd test/support/project && mix deps.get && mix compile) | |
- name: Compile | |
env: | |
MIX_ENV: test | |
run: mix compile | |
- name: Run tests | |
run: mix test | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint (1.15.x.x/26.x) | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
id: beam | |
with: | |
otp-version: 25.x | |
elixir-version: 1.14.x | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-mix-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-mix-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}- | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: mix deps.get | |
- name: Run Formatter | |
run: mix format --check-formatted | |
- name: Credo | |
run: mix credo |