-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (43 loc) · 1.02 KB
/
pr-verify.yml
File metadata and controls
47 lines (43 loc) · 1.02 KB
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
name: PR Verify
on:
push:
branches-ignore:
- develop
jobs:
check:
outputs:
run_verify: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
verify:
runs-on: ubuntu-latest
if: needs.check.outputs.run_verify == 'true'
needs: check
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: volta-cli/action@v4
- name: Set up node and yarn cache
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
cache: 'yarn'
- name: Install dependencies
run: |
yarn install --prefer-offline --frozen-lockfile
- name: Apply patches
run: |
yarn postinstall
- name: Run lint
run: |
yarn lint
- name: Check TS
run: |
yarn ts-check
- name: Run Tests
run: |
yarn test:ci