File tree Expand file tree Collapse file tree 2 files changed +71
-4
lines changed
Expand file tree Collapse file tree 2 files changed +71
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Shared setup
2+
3+ on :
4+ workflow_call : # Allows this workflow to be called by others
5+ inputs : {}
6+
7+ jobs :
8+ setup :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : erlef/setup-beam@v1
13+ with :
14+ otp-version : " 28"
15+ gleam-version : " 1.13.0"
16+ rebar3-version : " 3"
Original file line number Diff line number Diff line change 77 pull_request :
88
99jobs :
10- test :
10+ build :
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
1414 - uses : erlef/setup-beam@v1
1515 with :
16- otp-version : " 27.1.2 "
16+ otp-version : " 28 "
1717 gleam-version : " 1.13.0"
1818 rebar3-version : " 3"
1919 - run : gleam deps download
20+ - run : gleam build --target=erl
21+ - run : gleam build --target=js
22+
23+ format :
24+ runs-on : ubuntu-latest
25+ needs : build
26+ steps :
27+ - uses : actions/checkout@v4
28+ - uses : erlef/setup-beam@v1
29+ with :
30+ otp-version : " 28"
31+ gleam-version : " 1.13.0"
32+ rebar3-version : " 3"
33+ - run : gleam format --check src test
34+
35+ test-erl :
36+ runs-on : ubuntu-latest
37+ needs : build
38+ steps :
39+ - uses : actions/checkout@v4
40+ - uses : erlef/setup-beam@v1
41+ with :
42+ otp-version : " 28"
43+ gleam-version : " 1.13.0"
44+ rebar3-version : " 3"
2045 - run : gleam test --target=erl
46+ - run : gleam run -m birdie stale check
47+
48+ test-node :
49+ runs-on : ubuntu-latest
50+ needs : build
51+ steps :
52+ - uses : actions/checkout@v4
53+ - uses : actions/setup-node@v6
54+ with :
55+ node-version : " latest"
2156 - run : gleam test --target=js --runtime=node
57+
58+ test-deno :
59+ runs-on : ubuntu-latest
60+ needs : build
61+ steps :
62+ - uses : actions/checkout@v4
63+ - uses : denoland/setup-deno@v2
64+ with :
65+ deno-version : " lts"
2266 - run : gleam test --target=js --runtime=deno
67+
68+ test-bun :
69+ runs-on : ubuntu-latest
70+ needs : build
71+ steps :
72+ - uses : actions/checkout@v4
73+ - uses : oven-sh/setup-bun@v2
74+ with :
75+ bun-version : " latest"
2376 - run : gleam test --target=js --runtime=bun
24- - run : gleam run -m birdie stale check
25- - run : gleam format --check src test
You can’t perform that action at this time.
0 commit comments