-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.22 KB
/
ci.yml
File metadata and controls
53 lines (42 loc) · 1.22 KB
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
ELIXIR_VERSION: "1.19"
OTP_VERSION: "28.3.1"
jobs:
ci:
name: Lint, Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v3
- name: Cache Elixir deps
uses: actions/cache@v4
with:
path: |
opal/deps
opal/_build
key: mix-${{ runner.os }}-${{ hashFiles('opal/mix.lock') }}
restore-keys: mix-${{ runner.os }}-
- name: Cache Dialyzer PLTs
uses: actions/cache@v4
with:
path: opal/_build/dev/dialyxir_*.plt*
key: plt-${{ runner.os }}-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('opal/mix.lock') }}
restore-keys: plt-${{ runner.os }}-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-
- name: Install deps
run: |
cd opal && mix deps.get
cd ../cli && pnpm install --frozen-lockfile
- name: Codegen check
run: cd opal && mix run ../scripts/codegen_ts.exs --check
- name: Lint
run: mise run lint
- name: Build
run: mise run build
- name: Test
run: mise run test