feat: add cargo clean #81
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
changes: | |
timeout-minutes: 15 | |
name: Check code formatting | |
runs-on: ubuntu-latest | |
outputs: | |
src: ${{ steps.changes.outputs.src }} | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
- name: Filter for Rust file changes only | |
uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: | | |
src: | |
- 'src/*.rs' | |
- name: Report changes | |
run: | | |
if [ "${{ steps.changes.outputs.src }}" == 'true' ]; then | |
echo "Changes detected in source files." | |
else | |
echo "No changes to source files." | |
fi | |
src: | |
needs: changes | |
if: ${{ needs.changes.outputs.src == 'true' }} | |
name: Run style checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
with: | |
clean: false | |
fetch-depth: 0 | |
- name: Run code style check | |
uses: ./.github/actions/check_style |