Skip to content

Commit

Permalink
setup: CI for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
berzanorg committed Apr 30, 2024
1 parent e53dc23 commit 6676fa5
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml → .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Cargo Build & Test
name: Cargo Tests

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Node.js Tests

on:
push:

jobs:
token_contract:
name: Token Contract Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "21"
cache: "npm"
- run: npm install --prefix token-contract
- run: npm test --prefix token-contract

bridge_contract:
name: Bridge Contract Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "21"
cache: "npm"
- run: npm install --prefix bridge-contract
- run: npm test --prefix bridge-contract

rollup_contract:
name: Rollup Contract Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "21"
cache: "npm"
- run: npm install --prefix rollup-contract
- run: npm test --prefix rollup-contract

proof_generator:
name: Proof Generator Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "21"
cache: "npm"
- run: npm install --prefix proof-generator
- run: npm test --prefix proof-generator

0 comments on commit 6676fa5

Please sign in to comment.