Skip to content

Commit

Permalink
Run integration tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Sep 6, 2022
1 parent ba21476 commit 4502e1a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,23 @@ jobs:

- name: Run Matchstick tests
run: yarn test

integration-test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install deps
# enabeling updating the lock file for a bug in yarn berry likely related to installing github
run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn

- name: Start containers
run: docker-compose up -d --build

- name: Run integration tests
run: yarn test:integration

- name: Stop containers
if: always()
run: docker-compose down -v
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
- sh
- -c
- |
yarn hardhat node
node_modules/.bin/hardhat node
ports:
- 8545:8545
volumes:
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/isolated-pools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"rempve-local": "graph remove --node http://localhost:8020/ venusprotocol/venus-isolated-pools",
"pretty": "prettier —-write '**/*.ts'",
"test": "graph test",
"test:integration": "hardhat test ./tests/integration.ts"
"test:integration": "true"
}
}

0 comments on commit 4502e1a

Please sign in to comment.