diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a4ab729 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-20.04 + env: + MIX_ENV: test + strategy: + fail-fast: true + # https://hexdocs.pm/elixir/1.14.0/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp + matrix: + include: + - elixir: 1.15 + otp: 24.x + - elixir: 1.15 + otp: 25.x + - elixir: 1.15 + otp: 26.x + + steps: + - uses: actions/checkout@v2 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} + - run: mix deps.unlock --all + - run: mix deps.get + - run: mix deps.compile + - run: mix compile --warnings-as-errors + - run: mix test diff --git a/.github/workflows/elixir.yml b/.github/workflows/test.yml similarity index 89% rename from .github/workflows/elixir.yml rename to .github/workflows/test.yml index 2d47757..73b1d8b 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: CI +name: Test on: pull_request: @@ -47,6 +47,13 @@ jobs: - elixir: 1.14 otp: 25.x + - elixir: 1.15 + otp: 24.x + - elixir: 1.15 + otp: 25.x + - elixir: 1.15 + otp: 26.x + steps: - uses: actions/checkout@v2 - uses: erlef/setup-beam@v1