Skip to content

Commit fe3648f

Browse files
committed
test: Add testing to CI
1 parent 24bd6c0 commit fe3648f

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/push.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
11

2-
name: Push
2+
name: Test
33

4-
on: [ push ]
4+
on:
5+
push:
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
511

612
jobs:
713

814
build:
915

10-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.operating-system }}
1117

1218
strategy:
1319
fail-fast: false
1420
matrix:
21+
operating-system:
22+
- ubuntu-latest
23+
- windows-latest
1524
node-version:
16-
- 20.x # Maintenance
17-
- 22.x # Active
18-
- 23.x # Current
25+
- 20.x
26+
- 22.x
27+
- 24.x
1928

2029
steps:
2130

@@ -32,3 +41,6 @@ jobs:
3241

3342
- name: Yarn install
3443
run: yarn install
44+
45+
- name: Test
46+
run: yarn test

vitest.config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineConfig({
66
// TODO: prolly want to put integration tests in separate package/folder/something
77
// projects: [ 'packages/*' ],
88
include: [ '**/test/(unit|integration)/**/*.test.ts' ],
9-
hookTimeout: 60000,
10-
testTimeout: 60000,
9+
hookTimeout: 100000,
10+
testTimeout: 100000,
1111
},
1212
});

0 commit comments

Comments
 (0)