-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from alexkunde/fix-split
Fix pipeline/split function
- Loading branch information
Showing
2 changed files
with
34 additions
and
31 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 |
---|---|---|
@@ -1,32 +1,33 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
push: | ||
branches: [ main ] | ||
jobs: | ||
build: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup | ||
uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
- name: Build | ||
run: cargo build | ||
- name: Test | ||
run: cargo test -- --nocapture | ||
- name: Build (all features) | ||
run: cargo build --all-features | ||
- name: Test (all features) | ||
run: cargo test --all-features -- --nocapture | ||
- name: Coding style | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
~/.rustup | ||
/usr/local/cargo | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Install Rust | ||
run: rustup update stable | ||
- name: Run rustfmt | ||
run: cargo fmt --all -- --check | ||
- name: Run clippy | ||
run: cargo clippy --all -- -D warnings | ||
- uses: taiki-e/install-action@nextest | ||
- name: Cargo Test | ||
run: cargo nextest run --all-features --no-capture --no-fail-fast |
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