Moar fantomas #4
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: Fantomas check | |
on: | |
pull_request: | |
paths: | |
- 'samples/**' | |
- 'src/**' | |
- 'tests/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
fantomas-check: | |
name: Code format check | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Restore packages | |
run: dotnet tool restore | |
- name: Run Fantomas | |
run: dotnet fantomas --check src samples tests | |
- name: log failure | |
if: failure() | |
run: echo "Some files need formatting, please run 'dotnet fantomas src samples tests'" |