Add test_no_nif to matrix #32
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: [ "actions" ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Erlang and Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: 27.x | |
elixir-version: 1.17.x | |
- name: PLT cache | |
uses: actions/cache@v4 | |
id: plt_cache | |
with: | |
key: plt | |
path: priv/plts | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get dependencies | |
run: mix deps.get | |
- name: Check for compilation errors | |
run: mix compile --warnings-as-errors | |
- name: Check code formatting | |
run: mix format --check-formatted | |
- name: Analyze code with Credo | |
run: mix credo --strict | |
- name: Analyze code with Dialyzer | |
run: mix dialyzer --format github | |
test_diagnose: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Erlang and Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: master | |
elixir-version: main | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.3 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Get dependencies | |
run: mix deps.get | |
- name: Run tests | |
run: LANGUAGE=elixir test/integration/diagnose/bin/test | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
elixir: | |
- 1.17.x | |
otp: | |
- 27.x | |
- 26.x | |
- 25.x | |
ev: | |
- test | |
include: | |
- elixir: main | |
otp: master | |
- elixir: main | |
otp: master | |
env: test_no_nif | |
- elixir: 1.16.x | |
otp: 26.x | |
- elixir: 1.15.x | |
otp: 26.x | |
- elixir: 1.14.x | |
otp: 25.x | |
- elixir: 1.13.x | |
otp: 24.x | |
- elixir: 1.12.x | |
otp: 24.x | |
- elixir: 1.11.x | |
otp: 24.x | |
steps: | |
- name: Set up Erlang and Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get dependencies | |
run: mix deps.get | |
- name: Run tests | |
run: MIX_ENV=${{matrix.env}} mix test |