First implementation of retry=if_errors and retry=if_not_errors #7
Workflow file for this run
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
name: Rust format, build and test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rust_format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Format | |
run: cargo fmt --all -- --check | |
# rust_clippy: | |
# needs: [rust_format] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Clippy (default) | |
# run: cargo clippy --all-targets -- -D warnings | |
# - name: Clippy (tokio) | |
# run: cargo clippy --all-targets --features tokio -- -D warnings | |
# - name: Clippy (async_std) | |
# run: cargo clippy --all-targets --features async_std -- -D warnings | |
rust_build_and_test: | |
needs: [rust_format] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose |