-
Notifications
You must be signed in to change notification settings - Fork 211
53 lines (43 loc) · 1.17 KB
/
test.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
46
47
48
49
50
51
52
53
name: test
# On every pull request, but only on push to master
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: volta-cli/action@2d68418f32546fd191eb666e232b321d5726484d # v4.1.1
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: |
yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- name: Build code
run: |
yarn build
- name: Run tests in Puppeteer and generage Coverage
run: |
yarn test-cover
- name: Run tests on Node
run: |
yarn test-node
- name: Run lint
run: |
yarn lint
- name: Test website build
run: |
yarn test-website
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # v1.2.5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}