-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,42 @@ on: | |
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
|
||
jobs: | ||
build: | ||
|
||
Fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: fmt check | ||
run: cargo +nightly fmt --all --check | ||
|
||
Release Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: cargo build --release --verbose | ||
|
||
Pallet Tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- uses: actions/checkout@v3 | ||
- name: Run Pallet Tests | ||
run: cargo test --features runtime-benchmarks --verbose | ||
|
||
Integration Tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- uses: actions/checkout@v3 | ||
- name: STD Build | ||
run: cargo build --release --features std,instant-node | ||
- name: Run Integration Tests | ||
run: cargo test -p integration-tests |