forked from EOS-uiux-Solutions/eos-icons-landing
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 941 Bytes
/
test-pr.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
name: Test Pull Request
on: [pull_request]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout repository code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Load node_modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('package-lock.json') }}
- name: Install node_modules
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install
- name: Test sass
run: npm run test:sass
- name: Test js
run: npm run test:js
- name: Test build
run: |
cp src/config.example.json src/config.json
npm run build