-
-
Notifications
You must be signed in to change notification settings - Fork 84
43 lines (41 loc) · 1013 Bytes
/
verify.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
name: Verify
on:
push:
pull_request:
workflow_dispatch:
jobs:
react-versions:
runs-on: ubuntu-latest
strategy:
matrix:
react: [ 16, 17, 18 ]
name: React ${{ matrix.react }} Build
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- name: Dependencies
run: yarn
- name: Custom React version
run: |
echo -e "nodeLinker: node-modules\nenableImmutableInstalls: false" > ./.yarnrc.yml
npm pkg set devDependencies.react=${{matrix.react}} --ws
cat ./.yarnrc.yml
yarn
- name: Build
run: yarn build:core
verify:
runs-on: ubuntu-latest
name: Lint and Test
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- name: Dependencies
run: yarn
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Storybook
run: yarn build-storybook