Merge pull request #7 from CodeGov-org/feat/tally-service #39
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: "test" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm clean-install | |
- name: "check format" | |
run: npm run format:check | |
- name: "check linter" | |
run: npx eslint . | |
- name: "audit" | |
run: npm audit | |
- name: "install dfx" | |
uses: dfinity/setup-dfx@main | |
- name: "install mops packages" | |
run: | | |
npm i -g ic-mops | |
mops install | |
- name: "run backend tests" | |
run: mops test | |
- name: "run frontend tests" | |
run: | | |
dfx start --background | |
dfx deploy | |
npm start & npm test | |
dfx stop |