Skip to content

Commit a7f960e

Browse files
committed
Fixed test running
1 parent f3ad836 commit a7f960e

3 files changed

Lines changed: 24 additions & 20 deletions

File tree

.github/workflows/test.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
name: test
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- main
8-
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
99

1010
jobs:
11-
test:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: erlef/setup-beam@v1
16-
with:
17-
otp-version: "26.0.2"
18-
gleam-version: "1.2.1"
19-
rebar3-version: "3"
20-
# elixir-version: "1.15.4"
21-
- run: gleam deps download
22-
- run: gleam test
23-
- run: gleam format --check src test
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: erlef/setup-beam@v1
16+
with:
17+
otp-version: "26.0.2"
18+
gleam-version: "1.2.1"
19+
rebar3-version: "3"
20+
# elixir-version: "1.15.4"
21+
- uses: actions/setup-node@v6
22+
with:
23+
node-version: 22
24+
- run: gleam deps download
25+
- run: npm ci
26+
- run: npm run test
27+
- run: gleam format --check src test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "test"
88
},
99
"scripts": {
10-
"test": "concurrently \"npm:test-server\" \"npm:gleam-test\"",
10+
"test": "concurrently --kill-others --success first \"npm:test-server\" \"npm:gleam-test\"",
1111
"gleam-test": "wait-on http://localhost:1773 && gleam test",
1212
"test-server": "ts-node-dev test-server.ts"
1313
},

test/httpp_test.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn sse_mixture_test() {
4747
"line one of data\nline two of data\nline three of data",
4848
),
4949
sse.Event(option.Some("event-3"), option.None, "hello\nworld"),
50-
sse.Event(option.Some("event-4"), option.Some("evt-id"), "hewwo\n world"),
50+
sse.Event(option.Some("event-4"), option.Some("evt-id"), "hewwo\n worl"),
5151
]),
5252
)
5353
}

0 commit comments

Comments
 (0)