Browse Source
Merge pull request #1 from miksi-labs/feature/add-gha
Add GithubActions with for unit tests
pull/2/head
arnau
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
21 additions and
0 deletions
-
.github/workflows/tests.yml
|
@ -0,0 +1,21 @@ |
|
|
|
|
|
name: Test |
|
|
|
|
|
on: |
|
|
|
|
|
push: |
|
|
|
|
|
branches: [ '*' ] |
|
|
|
|
|
pull_request: |
|
|
|
|
|
branches: [ '*' ] |
|
|
|
|
|
jobs: |
|
|
|
|
|
build: |
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
strategy: |
|
|
|
|
|
matrix: |
|
|
|
|
|
node-version: [ 10.x ] |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
|
- name: Use Nodejs |
|
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
|
- name: Install node_modules |
|
|
|
|
|
run: npm install |
|
|
|
|
|
- name: Test circom circuits |
|
|
|
|
|
run: npm run test |