-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (41 loc) · 1.15 KB
/
integration.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
name: Integration
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
CACHE_VERSION: 20220905
on:
pull_request:
branches:
- master
jobs:
Integration:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node.js v16
uses: actions/setup-node@v2
with:
node-version: 16
- name: Cache local node_modules
uses: actions/cache@v2
id: node_modules-cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-node-modules-${{env.CACHE_VERSION}}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-modules-${{env.CACHE_VERSION}}
- name: Init
run: |
make github-init
- name: Lint
run: yarn lint
- name: Run Tests
run: yarn test
- name: Report coverage
uses: ArcBlock/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
monorepo-base-path: './packages'