api: add read-only workspace files #93
Workflow file for this run
This file contains hidden or 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: Validate Repo Maintenance | |
| # Branch protection should require the Actions check context `validate`. | |
| # GitHub exposes the job check run by this job name, not by the workflow title. | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| validate: | |
| name: validate | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Swift repo-maintenance tools | |
| run: | | |
| brew list swiftformat >/dev/null 2>&1 || brew install swiftformat | |
| brew list swiftlint >/dev/null 2>&1 || brew install swiftlint | |
| - name: Run repo-maintenance validation | |
| run: bash scripts/repo-maintenance/validate-all.sh |