Skip to content

Commit

Permalink
test: add integration tests for xvs vault
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Oct 10, 2023
1 parent 9dc1c76 commit 0939cbd
Show file tree
Hide file tree
Showing 23 changed files with 320 additions and 1,604 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Run Matchstick tests
run: yarn test

integration-test-isolated-pools:
integration-tests:
runs-on: ubuntu-20.04
needs: unit-test
steps:
Expand All @@ -74,27 +74,7 @@ jobs:
- name: Run Isolated Pools integration integration tests
run: |
docker exec -i subgraph-hardhat-node yarn workspace isolated-pools-subgraph run test:integration --bail
- name: Stop containers
if: always()
run: |
docker-compose down -v
docker system prune -f -a --volumes
integration-test-governance:
runs-on: ubuntu-20.04
needs: unit-test
steps:
- name: Checkout
uses: actions/checkout@v2

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

- name: Sleep to allow graph-node to become accessible
shell: bash
run: sleep 45s

- name: Generate Governance graphql types
run: |
docker exec -i subgraph-hardhat-node yarn workspace venus-governance-subgraph run prepare:local
Expand Down
6 changes: 6 additions & 0 deletions copy_contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ mkdir -p ./contracts/protocol
cp -rf ./node_modules/@venusprotocol/venus-protocol/contracts/ ./contracts/protocol/contracts
rm -rf contracts/protocol/contracts/test

mkdir -p ./contracts/governance/contracts/Governance
mkdir -p ./contracts/governance/contracts/legacy
cp ./node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorBravoDelegateV1.sol ./contracts/governance/contracts/legacy/GovernorBravoDelegateV1.sol
cp ./node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorBravoInterfaces.sol ./contracts/governance/contracts/legacy/GovernorBravoInterfaces.sol
cp ./node_modules/@venusprotocol/governance-contracts/contracts/Governance/GovernorBravoInterfaces.sol ./contracts/governance/contracts/Governance/GovernorBravoInterfaces.sol

rm contracts/protocol/contracts/Governance/GovernorBravoDelegate.sol
rm contracts/protocol/contracts/Governance/GovernorBravoDelegator.sol
rm contracts/protocol/contracts/Governance/Timelock.sol
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"@types/mustache": "^4.2.1",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"@venusprotocol/governance-contracts": "^1.1.0-dev.1",
"@venusprotocol/governance-contracts": "^1.3.0",
"@venusprotocol/isolated-pools": "2.1.0-dev.2",
"@venusprotocol/oracle": "^1.7.2",
"@venusprotocol/oracle": "^1.7.3-dev.1",
"@venusprotocol/venus-protocol": "3.1.0",
"assemblyscript": "0.19.23",
"chai": "^4.3.6",
Expand Down
308 changes: 0 additions & 308 deletions packages/venus-governance-abis/XVSToken.json

This file was deleted.

Loading

0 comments on commit 0939cbd

Please sign in to comment.