From c2546731c4f5290ce2c35c765c2b4595e08fd26d Mon Sep 17 00:00:00 2001 From: Mario Uher Date: Sun, 17 Dec 2023 15:26:42 +0100 Subject: [PATCH] Add daily CI workflow (#15) * Rename test workflow * Test more Elixir/OTP combos * Add daily CI workflow --- .github/workflows/ci.yml | 35 ++++++++++++++++++++++ .github/workflows/{elixir.yml => test.yml} | 9 +++++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml rename .github/workflows/{elixir.yml => test.yml} (89%) 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