-
Notifications
You must be signed in to change notification settings - Fork 29
40 lines (33 loc) · 911 Bytes
/
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
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: "lint-${{ github.head_ref || github.run_id }}"
cancel-in-progress: true
jobs:
swiftlint:
name: Swiftlint
runs-on: ubuntu-latest
container:
image: docker://ghcr.io/realm/swiftlint:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Swiftlint
run: swiftlint --strict --reporter github-actions-logging
markdownlint:
name: Markdownlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint README
run: docker run -v $PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "README.md"
- name: Lint DocC files
run: docker run -v $PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.docc/**/*.md"