Skip to content

Commit d29a3d2

Browse files
authored
Create check_pr.yml
1 parent 230a79c commit d29a3d2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/check_pr.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Check PR - Build Project
2+
3+
on:
4+
pull_request
5+
6+
jobs:
7+
build:
8+
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
fetch-depth: 0
16+
17+
- name: Use node 12
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 12.x
21+
22+
- name: Get yarn cache
23+
id: yarn-cache
24+
run: echo "::set-output name=dir::$(yarn cache dir)"
25+
26+
- name: Cache Node.js modules
27+
uses: actions/cache@v1
28+
with:
29+
path: ${{ steps.yarn-cache.outputs.dir }}
30+
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}
31+
restore-keys: |
32+
${{ runner.OS }}-yarn-
33+
34+
- name: Install dependencies
35+
run: yarn
36+
37+
- name: Build project
38+
run: yarn build

0 commit comments

Comments
 (0)