-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 900 Bytes
/
build.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
name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
env:
CREDENTIALS: ${{ secrets.CREDENTIALS }}
TOKEN: ${{ secrets.TOKEN }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
node-version:
- 16
architecture:
- x64
name: Using Node ${{ matrix.node-version }} on ${{ matrix.os }} (${{ matrix.architecture }})
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node ${{ matrix.node-version }} on ${{ matrix.os }} (${{ matrix.architecture }})
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
architecture: ${{ matrix.architecture }}
- name: Install project dependencies
run: npm ci
- name: Build project
run: npm run test