Skip to content

test

test #89

name: Formatting

Check failure on line 1 in .github/workflows/pre-commit-format.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pre-commit-format.yml

Invalid workflow file

(Line: 23, Col: 15): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp, (Line: 24, Col: 24): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp
on:
workflow_dispatch:
pull_request:
branches:
- "**"
merge_group:
branches: [main]
# schedule:
# - cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
formatting-checks:
runs-on: ubuntu-22.04
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
TMPDIR: ${{ runner.temp }}
DOTNET_CLI_HOME: ${{ runner.temp }}/dotnet-home
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
- name: Setup Python environment (for pre-commit)
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Clean dotnet temporary folder
run: |
sudo rm -rf /tmp/.dotnet
rm -rf "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME"
mkdir -p "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME"
- name: Install pre-commit and dependencies
run: |
pip install pre-commit
pre-commit install-hooks
- name: Run pre-commit checks
run: |
pre-commit run --all-files