-
Notifications
You must be signed in to change notification settings - Fork 84
59 lines (57 loc) · 1.71 KB
/
test-npm.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: NPM Tests
on:
push:
branches-ignore:
- 'master'
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
npm:
runs-on: ubuntu-latest
env:
CYPRESS_INSTALL_BINARY: 0
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
env:
CYPRESS_INSTALL_BINARY: 0
run: yarn install --frozen-lockfile
- name: Install Cypress Dependencies
working-directory: ./e2e-tests
run: yarn install --frozen-lockfile
- name: Build source
run: yarn run build
- name: Run package check
run: yarn run lint:package-json
- name: Run dashboard check
run: yarn run lint:dash
- name: Run customizer check
run: yarn run lint:customizer
- name: Run Stylelint on SCSS
run: yarn run lint:scss
- name: Run global JS check
run: yarn run lint:global
- name: Run size check
# WORKAROUND FOR SIZE-LIMIT JOB NUMBER
env:
CI_JOB_NUMBER: 1
run: yarn run size