-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (36 loc) · 966 Bytes
/
tests.yaml
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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- '**'
env:
PICKLIST_URL: https://climate-warehouse.s3.us-west-2.amazonaws.com/public/picklists.json
jobs:
test:
name: NPM Tests
runs-on: ubuntu-latest
container:
image: node:16.13
steps:
- uses: Chia-Network/actions/clean-workspace@main
- name: Checkout Code
uses: actions/checkout@v3
- name: Ignore Husky
run: npm pkg delete scripts.prepare
- name: Install Mocha
run: npm install --save-dev mocha
- name: npm install
run: npm install
- name: npm cache clear --force
run: npm cache clear --force
- name: npm cache rm
run: npm cache rm --force
- name: npm cache verify
run: npm cache verify
- name: install global packages
run: npm i -g @babel/cli sequelize-cli cross-env
- name: npm tests
run: npm run test