mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
This allows for better reusability and integration. macOS builds still run on Azure due to GitHub's limitation of up to 5 macOS jobs running concurrently.
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
lint-swift:
|
|
name: Swift
|
|
runs-on: ubuntu-24.04 # "Noble Numbat"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/bazel-linux-build
|
|
name: Build SwiftLint with Bazel
|
|
env:
|
|
CI_BAZELRC_FILE_CONTENT: ${{ secrets.CI_BAZELRC_FILE_CONTENT }}
|
|
- name: Lint
|
|
run: ./bazel-bin/swiftlint lint --reporter github-actions-logging --strict 2> /dev/null
|
|
lint-markdown:
|
|
name: Markdown
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Lint
|
|
uses: DavidAnson/markdownlint-cli2-action@v20
|
|
with:
|
|
globs: |
|
|
CHANGELOG.md
|
|
CONTRIBUTING.md
|
|
README.md
|
|
lint-actions:
|
|
name: Actions
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Register problem matcher
|
|
run: |
|
|
curl -sSL https://raw.githubusercontent.com/rhysd/actionlint/main/.github/actionlint-matcher.json > actionlint-matcher.json
|
|
echo "::add-matcher::actionlint-matcher.json"
|
|
- name: Lint
|
|
uses: docker://rhysd/actionlint:latest
|
|
with:
|
|
args: -color
|