This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (48 loc) · 1.56 KB
/
pr-checker-secrets.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
50
51
52
53
54
55
56
57
58
59
name: Pr Checker with Secrets
on:
pull_request:
branches:
- master
pull_request_target:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
if:
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
- run: yarn install --frozen-lockfile
- run: yarn build
env:
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
SPACE_ID: ${{secrets.SPACE_ID}}
test:
runs-on: ubuntu-latest
if:
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
- run: yarn install --frozen-lockfile
- run: yarn test:ci
env:
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
SPACE_ID: ${{secrets.SPACE_ID}}
PERCY_TOKEN: ${{secrets.PERCY_TOKEN}}