Skip to content

Commit

Permalink
Add daily CI workflow (#15)
Browse files Browse the repository at this point in the history
* Rename test workflow

* Test more Elixir/OTP combos

* Add daily CI workflow
  • Loading branch information
ream88 authored Dec 17, 2023
1 parent 2019ed5 commit c254673
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 8 additions & 1 deletion .github/workflows/elixir.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Test

on:
pull_request:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c254673

Please sign in to comment.