WIP test.yml
This commit is contained in:
parent
2ff6c75fdf
commit
3b0a64f199
|
@ -1,4 +1,4 @@
|
||||||
aame: Cargo Build & Test
|
name: Cargo Build & Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -11,14 +11,20 @@ jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
name: Rust project - latest
|
name: Rust project - latest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
toolchain:
|
|
||||||
- stable
|
|
||||||
- beta
|
|
||||||
- nightly
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
- run: |
|
||||||
- run: cargo build --verbose
|
sh -c "$(curl -sSfL https://release.solana.com/v1.15.2/install)"
|
||||||
- run: cargo test --verbose
|
export PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
|
||||||
|
solana --version
|
||||||
|
- name: Solana Cli Check
|
||||||
|
run: solana --version
|
||||||
|
|
||||||
|
- name: Early Build
|
||||||
|
run: cargo build --release --workspace --tests
|
||||||
|
|
||||||
|
- name: Run and Test
|
||||||
|
run: |
|
||||||
|
solana-test-validator &
|
||||||
|
cargo run --release &
|
||||||
|
cargo test
|
||||||
|
|
Loading…
Reference in New Issue