feat: add debug messages for better diagnostics #73
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: Test action | |
on: | |
# Runs when someone pushes to the main branch. | |
push: | |
branches: [main] | |
# Runs when someone updates a PR. | |
pull_request: | |
# Allow running manually. | |
workflow_dispatch: | |
jobs: | |
test: | |
name: 'Test action (${{ matrix.os }}, ${{ matrix.project-path }})' | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
project-path: ['.', subdir] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Initialize Rust project | |
run: cargo init --bin --vcs=none ${{ matrix.project-path }} | |
- name: Build Rust project | |
working-directory: ${{ matrix.project-path }} | |
run: cargo build | |
- name: cargo-sweep | |
uses: ./ | |
with: | |
manifest-path: ${{ matrix.project-path }}/Cargo.toml | |
- name: Check Rust project | |
working-directory: ${{ matrix.project-path }} | |
run: cargo check | |
# `cargo-sweep` should delete all build files, but keep the check ones. |