-
Notifications
You must be signed in to change notification settings - Fork 21
45 lines (43 loc) · 1.3 KB
/
check-pr.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: check test
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 17
- name: get yarn cache dir
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: set cache id
id: id-cache
run: echo "::set-output name=id::${GITHUB_SHA}"
- name: echo var
run: |
echo ${{ steps.yarn-cache.outputs.dir }}
echo ${{ steps.id-cache.outputs.id }}
echo ${GITHUB_SHA}
- name: yarn cache
uses: bluelovers/github-actions-cache@2020011001
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ steps.id-cache.outputs.id }}
restore-keys: |
${{ runner.os }}-yarn-
- name: setup git config
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: install deps
run: |
yarn config set ignore-engines true
yarn install --frozen-lockfile
yarn run ci:install
- name: run script
if: success()
# env:
run: yarn run ci:test