diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ae1c199..680346ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,12 +53,14 @@ jobs: - name: Check formatting (rustfmt) id: fmt - run: cargo fmt --all --check + run: | + cargo metadata --format-version 1 --no-deps \ + | jq -r '.packages[] | select(.name != "dt-tests") | "--package", .name' \ + | xargs -r cargo fmt --check - name: Run lint checks (clippy) id: lint - # Assuming 'make lint' runs 'cargo clippy' - run: make lint + run: cargo clippy --workspace --exclude dt-tests # - name: Check for typos # id: typos @@ -67,7 +69,7 @@ jobs: - name: Run cargo check id: check - run: cargo check --workspace --all-targets --all-features + run: cargo check --workspace --exclude dt-tests --all-targets --all-features - name: Summarize lint issues if: always() diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 7b3e0b70..0b88cde3 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -3,6 +3,7 @@ name: Integration Tests on: pull_request: branches: [main] + types: [opened, synchronize, reopened, edited, ready_for_review] paths-ignore: - "**.md" - "docs/**" @@ -23,6 +24,7 @@ env: jobs: discover: name: Discover integration suites + if: github.event_name == 'workflow_dispatch' || startsWith(github.event.pull_request.title, 'chore:') == false runs-on: ubuntu-latest outputs: suites: ${{ steps.suites.outputs.suites }} @@ -46,6 +48,7 @@ jobs: integration-test: name: "Integration / ${{ matrix.suite }}" needs: discover + if: github.event_name == 'workflow_dispatch' || startsWith(github.event.pull_request.title, 'chore:') == false runs-on: ubuntu-latest timeout-minutes: 90