Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 11 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,29 @@ on: [push, pull_request]
name: Tests
jobs:
test:
name: Test suite
strategy:
matrix:
net: [main, test, beta]
name: Test suite (${{ matrix.net }}net)
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Prepare target directory
run: |
rm -rf target && mkdir target
ln -s ~/build-cache/aurora-engine/debug/ target/debug
ln -s ~/build-cache/aurora-engine/release/ target/release
- run: make mainnet-test-build
- run: make testnet-test-build
- run: make betanet-test-build
- name: Run mainnet cargo test
run: cargo test --locked --verbose --features mainnet-test
- name: Run testnet cargo test
run: cargo test --locked --verbose --features testnet-test
- name: Run betanet cargo test
run: cargo test --locked --verbose --features betanet-test
- name: Clean target directory
run: rm -rf target
- run: make ${{ matrix.net }}net-test-build
- name: Run ${{ matrix.net }}net cargo test
run: cargo test --locked --verbose --features ${{ matrix.net }}net-test
bully-build:
name: Bully build
runs-on: self-hosted
needs: test
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Prepare target directory
run: |
rm -rf target && mkdir target
ln -s ~/build-cache/aurora-engine-bully/debug/ target/debug
ln -s ~/build-cache/aurora-engine-bully/release/ target/release
- name: Clean target directory
run: rm -rf target
- run: make mainnet-debug evm-bully=yes
- run: ls -lH mainnet-debug.wasm
env:
Expand Down