-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.19 KB
/
elixir.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Elixir CI
on: push
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
elixir-version: ["1.16"]
otp-version: ["25", "26"]
include:
- elixir-version: "1.15"
otp-version: "25"
- elixir-version: "1.14"
otp-version: "25"
- elixir-version: "1.13"
otp-version: "24"
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir-version }}
otp-version: ${{ matrix.otp-version }}
- name: Install dependencies
run: mix deps.get
- name: Compile deps
run: MIX_ENV=test mix deps.compile
- name: Compile
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Run tests
run: mix test --warnings-as-errors
- name: Run integration tests
env:
ELIXIR_SANITY_TEST_PROJECT_ID: ${{ secrets.ELIXIR_SANITY_TEST_PROJECT_ID }}
ELIXIR_SANITY_TEST_TOKEN: ${{ secrets.ELIXIR_SANITY_TEST_TOKEN }}
if: env.ELIXIR_SANITY_TEST_TOKEN
run: mix test --warnings-as-errors --only integration