Skip to content

Commit

Permalink
Merge pull request #62 from Unirep/environment
Browse files Browse the repository at this point in the history
test: add environment tests
  • Loading branch information
vivianjeng authored Dec 21, 2023
2 parents 5ab5c7e + 19fffdb commit 30a9d8b
Show file tree
Hide file tree
Showing 7 changed files with 669 additions and 417 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Environment Check CI

on:
push:
branches:
- main

jobs:
create-unirep-app:
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install -g create-unirep-app
- run: (echo -e "example"; sleep 1; echo -e '\n'; sleep 1; echo -e '\n')| npx create-unirep-app
- run: cd example && yarn build

create-unirep-app-windows:
runs-on: windows-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install -g create-unirep-app
- run: |
$command = '"example"; Start-Sleep -Seconds 3; "`r`n"; Start-Sleep -Seconds 3; "`r`n";'
Invoke-Expression -Command $command | npx create-unirep-app
- run: cd example && yarn build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint:check": "prettier . --check"
},
"devDependencies": {
"lerna": "^6.0.1",
"lerna": "6.6.1",
"node-fetch": "^3.3.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/circuits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build": "tsc && yarn copyCircom",
"buildsnark": "ts-node ./scripts/buildSnarks.ts && tsc && yarn copyCircom",
"test": "mocha -r ts-node/register test/*.test.ts --exit",
"copyCircom": "sh scripts/copyCircom.sh"
"copyCircom": "./scripts/copyCircom.sh"
},
"bugs": {
"url": "https://github.com/Unirep/create-unirep-app/issues"
Expand Down
Empty file modified packages/circuits/scripts/copyCircom.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion packages/relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build": "yarn keys",
"start": "ts-node ./src/index.ts",
"keys": "sh scripts/loadKeys.sh"
"keys": "./scripts/loadKeys.sh"
},
"dependencies": {
"@unirep-app/contracts": "1.0.0",
Expand Down
Empty file modified packages/relay/scripts/loadKeys.sh
100644 → 100755
Empty file.
Loading

0 comments on commit 30a9d8b

Please sign in to comment.