-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 967 Bytes
/
test.yaml
File metadata and controls
43 lines (34 loc) · 967 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
39
40
41
42
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout source Git branch
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 10
submodules: true
persist-credentials: false
# https://github.com/actions/setup-node/issues/214
- name: Reconfigure Git to use HTTP authentication
run: git config --global url."https://github.com/".insteadOf ssh://git@github.com/
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies via NPM
run: npm ci
- name: Start Ganache CLI as background service
run: npm run ganache-cli 1>/dev/null &
- name: Run CI/CD tests
run: npm test