Add github action to run the test + Test fixes #28
Workflow file for this run
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: "checks" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- dev | |
- feat/github-action | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Download circom binary | |
run: | | |
curl --location --request GET https://github.com/iden3/circom/releases/latest/download/circom-linux-amd64 --output $HOME/.cargo/bin/circom | |
# - name: Copy circom binary to $HOME/.cargo/bin | |
# run: cp /path/to/your/exe/file $HOME/.cargo/bin/ | |
- name: ls | |
run: ls $HOME/.cargo/bin | |
- name: Circom clean | |
run: npm run circom-clean | |
- name: Circom build | |
run: npm run circom-build | |
- name: Run tests | |
run: npm run test |