mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 15:20:18 +00:00
Migrate CI to github-actions (#17)
This commit is contained in:
parent
6fbc13e0d2
commit
3acee2ca1e
@ -1,36 +0,0 @@
|
||||
version: 2
|
||||
jobs:
|
||||
backend sdk:
|
||||
docker:
|
||||
- image: circleci/rust:latest
|
||||
environment:
|
||||
RUST_BACKTRACE: 1
|
||||
RUST_TEST_THREADS: 1
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- backendsdk01-{{ checksum "Cargo.toml" }}
|
||||
- run: | #TODO: enable 'stable' and 'beta' once `allocator_api` becomes stable
|
||||
rustup toolchain install nightly-2022-03-20
|
||||
rustup default nightly-2022-03-20
|
||||
rustup override set nightly-2022-03-20
|
||||
rustup component add rustfmt
|
||||
rustup component add clippy
|
||||
cargo fmt --all -- --check --color always
|
||||
cargo build
|
||||
(cd crates/marine-test-macro-impl; cargo test)
|
||||
|
||||
cargo test -v --all-features
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- ~/.cargo
|
||||
- ~/.rustup
|
||||
key: backendsdk01-{{ checksum "Cargo.toml" }}
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
fluence:
|
||||
jobs:
|
||||
- backend sdk
|
52
.github/workflows/marine-rs-sdk-test.yml
vendored
Normal file
52
.github/workflows/marine-rs-sdk-test.yml
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
name: "marine-rs-sdk-test"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "Build and test"
|
||||
runs-on: builder
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
RUST_TEST_THREADS: 1
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
default: true
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: "Cache rust"
|
||||
uses: Swatinem/rust-cache@v1
|
||||
|
||||
- name: "cargo fmt"
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
- name: "cargo build"
|
||||
run: cargo build
|
||||
|
||||
- name: "cargo check"
|
||||
run: cargo check -v --all-features
|
||||
|
||||
- name: "Run marine-test-macro-impl"
|
||||
run: cargo test
|
||||
working-directory: crates/marine-test-macro-impl
|
||||
|
||||
- name: "cargo test"
|
||||
run: cargo test --release --all-features --no-fail-fast
|
||||
|
||||
- name: "cargo clippy"
|
||||
run: cargo clippy -Z unstable-options --all
|
Loading…
Reference in New Issue
Block a user