This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
111 lines (96 loc) · 2.67 KB
/
main.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
on:
push:
branches:
- main
pull_request:
jobs:
elixir:
name: Elixir
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Restore deps and _build cache
uses: actions/cache@v4
with:
path: |
deps
_build
key: deps-elixir-${{ runner.os }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-elixir-${{ runner.os }}
- name: Run CI script
run: task elixir-check-format
elixir-test:
name: Elixir Test (OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
strategy:
matrix:
include:
- elixir: 1.13.4
otp: 24.3
- elixir: 1.15.4
otp: 25.3
- elixir: 1.16.3
otp: 26.2
- elixir: 1.17.2
otp: 27.0
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Restore deps and _build cache
uses: actions/cache@v4
with:
path: |
deps
_build
key: deps-elixir-test-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-elixir-test-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
- name: Run tests
run: task elixir-test
node:
name: Node
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Restore deps and _build cache
uses: actions/cache@v4
with:
path: |
node_modules
key: deps-node-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
deps-node-${{ runner.os }}-
- name: Run CI script
run: task node-ci