-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (60 loc) · 1.75 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Elixir CI
on:
pull_request:
branches: ["main"]
permissions:
contents: read
concurrency:
group: manx-build-and-test-${{ github.ref }}
cancel-in-progress: true
env:
KINDA_PRINT_LINKAGES: 1
jobs:
build:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: ["25.0"]
elixir: ["1.14.0"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Set up Zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.11.0
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-kinda-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-kinda-
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: ./kinda_example/deps
key: ${{ runner.os }}-mix-example-${{ hashFiles('**/mix.exs') }}
restore-keys: ${{ runner.os }}-mix-example-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: |
mix test
- name: Install dependencies (example)
working-directory: ./kinda_example
run: mix deps.get
- name: Run tests (example)
working-directory: ./kinda_example
run: |
mix test --force
- uses: actions/upload-artifact@v3
if: failure()
with:
name: kinda-example-tmp-${{ github.run_number }}-${{ github.run_attempt }}
path: ./kinda_example/tmp/**/*.zig