generated from maksimr/playground
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 993 Bytes
/
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
name: Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: node
run: echo "##[set-output name=versoin;]$(cat .nvmrc)"
id: node
- uses: actions/setup-node@v4
with:
node-version: "${{ steps.node.outputs.version }}"
- name: Install dependencies
run: |
npm ci
- name: Run static tests
run: |
npm run test:codestyle
npm run test:type
npm run test:cpd
- name: Run unit tests
run: |
npm run test
- name: Run visual regression tests
run: |
npm run test:e2e -- --browsers=Chrome
npm run test:e2e -- --browsers=Firefox
- uses: actions/upload-artifact@v4
if: failure()
with:
name: diff_output
path: test/e2e/__image_snapshots__/__diff_output__
- name: Run build tests
run: |
node scripts/run-build-test.js