-
Notifications
You must be signed in to change notification settings - Fork 24
56 lines (51 loc) · 1.5 KB
/
ci.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
name: CI
on:
push:
branches: main
tags: v*
pull_request:
branches: "*"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- windows-2019
config:
- name: lint
command: |
# lint steps
yarn run tsc --noEmit # typecheck files that are not included by webpack or package builds
yarn run lint:ci
- name: test
command: yarn run test --maxWorkers=100%
# Run the bin scripts to make sure they run successfully
# Unit tests don't run the _bin_ scripts so this serves as safety net that the scripts run
- name: sample run
command: |
yarn run tsc
node dist/bin/foxglove-extension.js --help
node dist/bin/create-foxglove-extension sample
name: ${{ matrix.config.name }} (${{ matrix.os }})
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
lfs: true
- name: Configure Node.js
uses: actions/setup-node@v2.1.5
with:
node-version: 14.x
- name: Restore cache
uses: actions/cache@v2.1.5
with:
path: |
.yarn/cache
**/node_modules
key: ${{ runner.os }}-yarn-4-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-4-
- run: yarn install --immutable
- run: ${{ matrix.config.command }}