Skip to content

Commit c8f1b52

Browse files
richard-vineylpil
authored andcommitted
Run CI on all supported runtimes
1 parent 934f181 commit c8f1b52

File tree

2 files changed

+59
-8
lines changed

2 files changed

+59
-8
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,64 @@ on:
88
pull_request:
99

1010
jobs:
11-
test:
12-
runs-on: ubuntu-latest
11+
test_erlang:
12+
runs-on: ubuntu-24.04
13+
strategy:
14+
matrix:
15+
erlang_version: ["26.2", "27.0"]
1316
steps:
1417
- uses: actions/checkout@v3
1518
- uses: erlef/setup-beam@v1
1619
with:
17-
otp-version: "26.0.2"
18-
gleam-version: "1.2.0"
19-
- uses: actions/setup-node@v3
20-
with:
21-
node-version: "16.18.1"
20+
otp-version: ${{ matrix.erlang_version }}
21+
gleam-version: "1.2.1"
2222
- run: gleam test --target erlang
23-
- run: gleam test --target javascript
2423
- run: gleam format --check src test
24+
25+
test_javascript_node:
26+
runs-on: ubuntu-24.04
27+
strategy:
28+
matrix:
29+
node_version: ["18.20", "20.15", "22.3"]
30+
steps:
31+
- uses: actions/checkout@v3
32+
- uses: erlef/setup-beam@v1
33+
with:
34+
otp-version: "27.0"
35+
gleam-version: "1.2.1"
36+
- uses: actions/setup-node@v3
37+
with:
38+
node-version: ${{ matrix.node_version }}
39+
- run: gleam test --target javascript --runtime node
40+
41+
test_javascript_bun:
42+
runs-on: ubuntu-24.04
43+
strategy:
44+
matrix:
45+
bun_version: ["1.1"]
46+
steps:
47+
- uses: actions/checkout@v3
48+
- uses: erlef/setup-beam@v1
49+
with:
50+
otp-version: "27.0"
51+
gleam-version: "1.2.1"
52+
- uses: oven-sh/setup-bun@v1
53+
with:
54+
bun-version: ${{ matrix.bun_version }}
55+
- run: gleam test --target javascript --runtime bun
56+
57+
test_javascript_deno:
58+
runs-on: ubuntu-24.04
59+
strategy:
60+
matrix:
61+
deno_version: ["1.44"]
62+
steps:
63+
- uses: actions/checkout@v3
64+
- uses: erlef/setup-beam@v1
65+
with:
66+
otp-version: "27.0"
67+
gleam-version: "1.2.1"
68+
- uses: denoland/setup-deno@v1
69+
with:
70+
deno-version: ${{ matrix.deno_version }}
71+
- run: gleam test --target javascript --runtime deno

test/gleam/bit_array_test.gleam

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ pub fn base64_decode_test() {
191191
")!"
192192
|> bit_array.base64_decode()
193193
|> should.equal(Error(Nil))
194+
195+
"=AAA"
196+
|> bit_array.base64_decode()
197+
|> should.equal(Error(Nil))
194198
}
195199

196200
pub fn base64_url_encode_test() {

0 commit comments

Comments
 (0)