Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: quality.yml
on:
pull_request:

concurrency:
group: ${{ github.event.pull_request.number || github.run_id }}-quality
cancel-in-progress: true

jobs:
quality-tools:
name: Run quality tools
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Cache Rust
uses: Swatinem/rust-cache@v2

- name: cargo check
run: cargo check --locked

- name: cargo fmt --check
run: cargo fmt --check

- name: cargo clippy
run: cargo clippy -- -D warnings

- name: cargo test
run: cargo test --locked
4 changes: 1 addition & 3 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ fn test_main_output() {
.expect("Failed to run binary");

let stdout = String::from_utf8_lossy(&output.stdout);
assert!(
stdout.contains("PHP Refactor")
);
assert!(stdout.contains("PHP Refactor"));
}