-
Notifications
You must be signed in to change notification settings - Fork 21
64 lines (59 loc) · 1.59 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Tests
on:
pull_request:
branches:
- develop
- master
workflow_call:
jobs:
react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dependencies
with:
root: false
packages-react: true
packages-styles: true
- name: Build packages
run: |
NODE_ENV=production yarn --cwd packages/react build
- run: yarn test
screenshots:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dependencies
with:
root: true
packages-react: true
packages-styles: true
- name: Build packages
run: |
NODE_ENV=production yarn --cwd packages/react build
NODE_ENV=production yarn --cwd packages/styles build
- name: Screenshot testing
run: |
yarn screenshots:docker
yarn screenshots
- name: Screenshot test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshot-test-results
path: ./e2e/test-results
retention-days: 14
a11y:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dependencies
with:
packages-react: true
packages-styles: true
- name: Build packages
run: |
NODE_ENV=production yarn --cwd packages/react build
NODE_ENV=production yarn --cwd packages/styles build
- run: yarn build:docs
- run: yarn test:a11y