-
Notifications
You must be signed in to change notification settings - Fork 2.2k
45 lines (42 loc) · 1.1 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Lint
on:
pull_request:
branches:
- '*'
permissions:
contents: read
pull-requests: write
jobs:
lint-swift:
name: Lint Swift
runs-on: ubuntu-24.04 # "Noble Numbat"
container: swift:6.0-noble
steps:
- uses: actions/checkout@v4
- name: Lint
run: swift run swiftlint --reporter github-actions-logging --strict 2> /dev/null
lint-markdown:
name: Lint Markdown
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Lint
uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: |
CHANGELOG.md
CONTRIBUTING.md
README.md
lint-actions:
name: Lint 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