-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (38 loc) · 1.03 KB
/
test.yml
File metadata and controls
50 lines (38 loc) · 1.03 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
name: test
on:
push:
branches:
- master
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Erlang/OTP
uses: erlef/setup-beam@v1
with:
otp-version: "27.1.2"
gleam-version: "1.11.1"
rebar3-version: "3"
# elixir-version: "1"
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
- name: Install NPM dependencies
run: npm install
- name: Install dependencies
run: gleam deps download
- name: Build Erlang
run: gleam build --target erl
- name: Build JavaScript
run: gleam build --target js
- name: Test formatting
run: gleam format --check src test
- name: Test Erlang
run: gleam test --target erl
- name: Test JavaScript
run: gleam test --target js