Initial xkeys support #38
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: Format | |
on: | |
pull_request: {} | |
# to be removed. only needed for the initial setup. running on pull requests is enough. | |
push: { branches: [ main ] } | |
jobs: | |
check: | |
name: check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.x' | |
- name: Check formatting | |
run: | | |
if dotnet format --verify-no-changes; then | |
echo "formatting passed" | |
else | |
rc="$?" | |
echo "formatting failed; run 'dotnet format'" >&2 | |
exit "$rc" | |
fi |