name: Gates # Repository style/structure gates plus format and lint. One concern, one badge. on: push: branches: [main] pull_request: workflow_dispatch: permissions: contents: read issues: read jobs: gates: name: Gates runs-on: macos-latest steps: - uses: actions/checkout@v6 - name: Install format and lint tools run: brew install swiftformat swiftlint - name: Repository gates env: GH_TOKEN: ${{ github.token }} run: | bash scripts/check-style.sh bash scripts/check-namespacing.sh bash scripts/check-forbidden-patterns.sh git fetch origin main --depth=1 || true BASE_REF=origin/main bash scripts/check-changelog-touched.sh - name: Format and lint run: | swiftformat . --config .swiftformat --lint swiftlint --config .swiftlint.yml --strict