Skip to content

Commit

Permalink
Merge pull request #164 from Chia-Network/add-tests-ci
Browse files Browse the repository at this point in the history
ci: add tests to the ci
  • Loading branch information
TheLastCicada authored Sep 27, 2023
2 parents 875093e + ac73578 commit 1766e8f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- '**'

jobs:
test:
name: NPM Tests
runs-on: ubuntu-latest
container:
image: node:18.16

steps:
- uses: Chia-Network/actions/clean-workspace@main

- name: Checkout Code
uses: actions/checkout@v3

- name: npm install
run: npm install

- name: install global packages
run: npm i -g @babel/cli sequelize-cli cross-env

- name: npm tests
run: npm run test-ci
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"main": "proxy.js",
"scripts": {
"test": "jest --detectOpenHandles",
"test-ci": "jest --ci",
"start": "node --no-warnings src/server.js",
"prepare-binary": "rm -rf dist && mkdir dist",
"create-win-x64-dist": "pkg package.json -t node16-win-x64 --out-path dist",
Expand All @@ -22,7 +23,7 @@
"url": "git+https://github.com/Chia-Network/climate-tokenization-engine.git"
},
"author": "Chia Networks Inc",
"license": "Apache",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/Chia-Network/climate-tokenization-engine/issues"
},
Expand Down

0 comments on commit 1766e8f

Please sign in to comment.