Skip to content

queued operations and ts #76

queued operations and ts

queued operations and ts #76

Workflow file for this run

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.