mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2025-03-14 20:20:50 +00:00
46 lines
979 B
YAML
46 lines
979 B
YAML
name: "marine-rs-sdk-test"
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
RUST_TEST_THREADS: 1
|
|
CARGO_HOME: "${{ github.workspace }}/cargo"
|
|
|
|
jobs:
|
|
marine-rs-sdk-test:
|
|
name: "Run tests"
|
|
runs-on: builder
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
- name: Run cargo fmt
|
|
run: cargo fmt --all -- --check
|
|
|
|
- name: Run cargo build
|
|
run: cargo build
|
|
|
|
- name: Run cargo check
|
|
run: cargo check -v --all-features
|
|
|
|
- name: Run cargo test in marine-test-macro-impl
|
|
run: cargo test
|
|
working-directory: crates/marine-test-macro-impl
|
|
|
|
- name: Run cargo test
|
|
run: cargo test --release --all-features --no-fail-fast
|
|
|
|
- name: Run cargo clippy
|
|
run: cargo clippy -Z unstable-options --all
|