Running lints and tests for feature/casper-2.0 #450
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches-ignore: | |
- 'hotfix/**' | |
paths-ignore: | |
- '**.md' | |
push: | |
branches: | |
- 'release/**' | |
paths-ignore: | |
- '**.md' | |
run-name: Running lints and tests for ${{ github.head_ref }} | |
jobs: | |
test: | |
name: Test | |
runs-on: buildjet-8vcpu-ubuntu-2204 | |
# services: | |
# casper-nctl: | |
# image: makesoftware/casper-nctl:v200-rc3 | |
# options: --name mynctl | |
# env: | |
# PREDEFINED_ACCOUNTS: 'true' | |
# MINIMUM_ROUND_EXPONENT: '12' | |
# MAXIMUM_ROUND_EXPONENT: '14' | |
# DEPLOY_DELAY: '30sec' | |
# ports: | |
# - 11101:11101 | |
steps: | |
- name: Setup just | |
uses: extractions/setup-just@v1 | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache target | |
uses: actions/cache@v2 | |
with: | |
path: target | |
key: odra-target-folder | |
- name: Setup toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
target: wasm32-unknown-unknown | |
components: rustfmt, clippy, llvm-tools-preview | |
- name: Run lints | |
run: just check-lint | |
- name: Prepare test environment | |
run: just prepare-test-env | |
- name: Run tests | |
run: just test | |
# - name: Run livenet tests | |
# run: just test-livenet |