-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (60 loc) · 1.67 KB
/
testing.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: CI
on: [push]
jobs:
testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js for use with actions
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache
uses: actions/[email protected]
with:
path: ~/.cache/yarn
key: ${{ matrix.os }}-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: |
${{ matrix.os }}-
- name: Install deps
run: yarn install
- name: Testing @fleur/fleur
run: |
cd packages/fleur
yarn prepublishOnly
yarn test --coverage --verbose
- name: Testing @fleur/di
run: |
cd packages/di
yarn prepublishOnly
yarn test --coverage --verbose
- name: Testing @fleur/react
run: |
cd packages/react
yarn prepublishOnly
yarn test --coverage --verbose
- name: Testing @fleur/testing
run: |
cd packages/testing
yarn prepublishOnly
yarn test --coverage --verbose
- name: Testing @fleur/create-next-app
run: |
cd packages/create-next-app
yarn prepublishOnly
node ./bin/index test-app
cd test-app
yarn install
yarn run build
- name: Testing @fleur/next
run: |
cd packages/next
yarn prepublishOnly
- name: Benchmarking
run: |
cd packages/fleur-benchmarks
yarn test