-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 987 Bytes
/
Copy pathTestBuild.yml
File metadata and controls
38 lines (34 loc) · 987 Bytes
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
name: Node-Server-AutoBuild&Test
on:
push:
branches: master
paths-ignore:
- 'ng_app/**'
- '.github/**'
- 'dist/**'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule sync --recursive
git -c "http.extraheader=Authorization: basic ${{secrets.ACTION_SUBMODULE_READ}}" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm run test
npm run build --if-present
env:
CI: true