-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (43 loc) · 1020 Bytes
/
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
46
47
48
49
name: 'test'
on:
push:
branches:
- '*'
pull_request:
branches:
- main
- develop
jobs:
build:
name: Lint, Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Add node_modules/.bin to $PATH
run: |
echo "$PWD/node_modules/.bin" >> $GITHUB_PATH
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
# 'YARN_CHECKSUM_BEHAVIOR=update' env var is needed to install git-based dependencies, but is not safe.
- name: Install dependencies
run: |
corepack enable
yarn install
- name: Lint source
run: |
yarn run lint:ci
- name: Build apps and packages
run: |
yarn run build:ci
- name: Run tests
run: |
yarn run test:ci
env:
CI: true