Merge pull request #123 from Chia-Network/develop #327
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
- stage | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: NPM Tests | |
runs-on: ubuntu-latest | |
container: | |
image: node:20.16 | |
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 |