-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.51 KB
/
Copy pathtest.yml
File metadata and controls
58 lines (54 loc) · 1.51 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
54
55
56
57
58
name: test
on:
push:
branches:
- main
pull_request:
jobs:
check-format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: "28"
gleam-version: "1.16"
rebar3-version: "3"
- run: gleam deps download
- run: gleam format --check src test
test-erlang:
name: Erlang (OTP ${{ matrix.otp-version }}, Gleam ${{ matrix.gleam-version }})
runs-on: ubuntu-latest
strategy:
matrix:
otp-version: ["27", "28"]
gleam-version: ["1.15", "1.16"]
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp-version }}
gleam-version: ${{ matrix.gleam-version }}
rebar3-version: "3"
- run: gleam deps download
- run: gleam test --target erlang
test-javascript:
name: JavaScript (Node ${{ matrix.node-version }}, Gleam ${{ matrix.gleam-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["22", "24"]
gleam-version: ["1.15", "1.16"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- uses: erlef/setup-beam@v1
with:
otp-version: "28"
gleam-version: ${{ matrix.gleam-version }}
rebar3-version: "3"
- run: gleam deps download
- run: gleam test --target javascript