-
Notifications
You must be signed in to change notification settings - Fork 21
45 lines (43 loc) · 1.17 KB
/
test.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
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
build-and-check:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node-version: ["20.x"]
runs-on: ${{ matrix.os }}
steps:
- uses: zendesk/checkout@v3
- name: Use Node.js
uses: zendesk/setup-node@v4
with:
node-version: "${{ matrix.node-version }}"
cache: "yarn"
- uses: zendesk/cache@v3
with:
path: |
./node_modules/
./packages/zcli/node_modules/
./packages/zcli-core/node_modules/
./packages/zcli-apps/node_modules/
./packages/zcli-themes/node_modules/
key: node-modules-${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}-${{ hashFiles('**/package.json') }}-
node-modules-${{ runner.os }}-
- run: yarn install
- run: yarn lint
- run: yarn test
- run: yarn test:functional
- run: yarn dev
- run: yarn type:check
env:
CI: true