-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.1 KB
/
ci-tests.yaml
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
name: Run analyzer tests on push
on:
pull_request:
jobs:
tests:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@master
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://npm.pkg.github.com'
scope: "@rumblefishdev"
- name: 'Cache NPM dependencies'
uses: pat-s/[email protected]
with:
path: |
**/node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('packages/*/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install dependencies
run: |
npm i
node_modules/.bin/lerna bootstrap
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build types
run: |
npm run types:build
- name: Build Analyzer
run: |
npm run analyzer:build
- name: Run lint
run: |
npm run lint:check
- name: Run tests
run: |
npm run test