forked from blockchain/blockchain-wallet-v4-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.09 KB
/
pull-request.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
name: pull-request
on:
pull_request:
types: [opened, synchronize, reopened]
env:
HUSKY: 0
jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node.js
uses: actions/setup-node@v4
with:
node-version: 16
- name: Get node version
id: node
run: |
echo "::set-output name=version::$(node -v)"
- name: Get node_modules cache
uses: actions/cache@v4
id: node_modules
with:
path: |
**/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ steps.node.outputs.version }}
- name: Install dependencies
run: yarn --frozen-lockfile
# TODO: enable once all lint issues are fixed
#- name: Lint code
# run: yarn ci:lint
- name: Build code
run: yarn ci:test:build
- name: Test package - components/core
run: yarn ci:test:core:components
- name: Test package - frontend
run: yarn ci:test:frontend