-
Notifications
You must be signed in to change notification settings - Fork 313
45 lines (34 loc) · 974 Bytes
/
tests.yml
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
name: Tests
on:
push:
branches: [ master ]
pull_request:
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
node-version: [18, 20, 21]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# Workaround for some `yarn` nonsense, see:
# https://github.com/yarnpkg/yarn/issues/6312#issuecomment-429685210
- name: Install Dependencies
run: yarn install --network-concurrency 1
- name: Build
run: yarn build:prod
- name: Unit Tests
run: yarn test:node
- name: Integration Tests
run: yarn test:integration
- name: Browser Tests
run: yarn test:browser
- name: Browser Tests (No Axios)
run: yarn test:browser:no-axios