-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.04 KB
/
check-if-mergeable.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
name: check-if-mergeable
on:
pull_request:
types:
- opened
- synchronize
branches:
- 'develop'
jobs:
build:
name: check-if-mergeable
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
# node 세팅
- name: Init node
uses: actions/[email protected]
with:
node-version: '18.17.1'
cache: 'yarn'
- name: Set Yarn Version
id: set-version
run: |
yarn set version 4.0.2
echo "YARN_VERSION=$(yarn -v)" >> $GITHUB_OUTPUT
- name: Yarn Cache - PnP
uses: actions/cache@v2
with:
path: |
.yarn/cache
.pnp.*
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ steps.set-version.outputs.YARN_VERSION }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-
- name: Install dependencies
run: yarn install
- name: check-unit-test
run: yarn test ./src