-
Notifications
You must be signed in to change notification settings - Fork 217
57 lines (45 loc) · 1.16 KB
/
test.yml
File metadata and controls
57 lines (45 loc) · 1.16 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
name: test
# On every pull request, but only on push to master
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
timeout-minutes: 15
strategy:
matrix:
node-version: [22]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node (with Corepack)
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn' # or 'pnpm', 'npm' depending on your package manager
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: |
yarn run bootstrap
- name: Run browser tests (generate coverage)
run: |
yarn run test-cover
- name: Run node tests
run: |
yarn run test-node
- name: Run lint
run: |
yarn run lint
- name: Build website
run: |
cd website; yarn build
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}