-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (39 loc) · 1.03 KB
/
javascript-ci.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
name: Javascript CI
on:
push:
pull_request:
jobs:
ci:
name: Javascript CI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache dependencies
id: cached-yarn-dependencies
uses: actions/cache@v3
with:
path: javascript/node_modules
key: 16.x-${{ runner.OS }}-build-${{ hashFiles('javascript/yarn.lock') }}
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
if: steps.cached-yarn-dependencies.outputs.cache-hit != 'true'
run: |
yarn
working-directory: javascript
- name: Typecheck
run: |
yarn test:api
working-directory: javascript
- name: Build
run: |
yarn build
working-directory: javascript
- name: Test
run: |
yarn test
working-directory: javascript