Skip to content

Commit

Permalink
Run integration test on push to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Leonard authored and Robert Leonard committed Sep 7, 2023
1 parent 0ae96cf commit 1f4e1de
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ts-client-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: [push]

name: test

jobs:
check:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Install Dev Dependencies
working-directory: ./ts-client
uses: npm install

- name: Run Anvil Node
uses: anvil

- name: Run tests
working-directory: ./ts-client
run: npm run integration-test
3 changes: 2 additions & 1 deletion ts-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"license": "MIT",
"scripts": {
"generate-contract-types": "typechain --target=ethers-v6 ./abi/DIDRegistry.json",
"spawn-devnet": "tenderly devnet spawn-rpc --project project --template bnb-testnet"
"spawn-devnet": "tenderly devnet spawn-rpc --project project --template bnb-testnet",
"integration-test": "jest"
},
"dependencies": {
"dotenv": "^16.3.1",
Expand Down

0 comments on commit 1f4e1de

Please sign in to comment.