Skip to content

Commit

Permalink
e2e: Fetch mosaic-1 and run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Dec 22, 2021
1 parent a7c9683 commit 0e916ee
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ jobs:
- name: Unit tests with coverage
run: go test -race -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -v ./...

- name: Mosaic-1 e2e test
run: |
./oasis-evm-web3-gateway --config conf/tests.yml &
git clone https://github.com/cgewecke/mosaic-1.git
cp tests/tools/buidler.config.js mosaic-1
cd mosaic-1
yarn
yarn test
cd ..
killall oasis-evm-web3-gateway
- name: Shutdown oasis-node
run: killall oasis-node
if: always()
Expand All @@ -80,3 +91,4 @@ jobs:

- name: Upload to codecov.io
uses: codecov/[email protected]

22 changes: 22 additions & 0 deletions tests/tools/buidler.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
usePlugin('@nomiclabs/buidler-truffle5');

module.exports = {
defaultNetwork: 'local',
networks: {
local: {
url: "http://localhost:8545",
accounts:
{ mnemonic: "tray ripple elevator ramp insect butter top mouse old cinnamon panther chief"} ,
}
},
solc: {
version: '0.5.13',
optimizer: {
enabled: false
},
evmVersion: 'istanbul'
},
mocha: {
timeout: 50000
}
};

0 comments on commit 0e916ee

Please sign in to comment.