Merge pull request #311 from korpling/feature/fix-saltxml-spans #1228
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
on: | |
push: | |
merge_group: | |
name: Rust | |
jobs: | |
format: | |
name: Format Code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/[email protected] | |
- uses: mbrobbel/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
static_code_analysis: | |
name: Static code analysis | |
needs: format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/[email protected] | |
with: | |
components: clippy | |
- name: Check code without default features | |
run: cargo check --no-default-features | |
- name: Check with clippy with all features enabled | |
run: cargo clippy --all-features -- -D warnings | |
unit-tests: | |
env: | |
RUST_BACKTRACE: 0 | |
name: Unit tests | |
needs: format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/[email protected] | |
- name: Run unit tests | |
run: cargo test | |