Skip to content

Commit 5e5c257

Browse files
authored
Merge pull request #437 from vogler/super-linter
try super-linter
2 parents ceb873e + 6aa0f9b commit 5e5c257

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# https://github.com/marketplace/actions/super-linter#get-started
2+
name: Lint
3+
4+
on: # yamllint disable-line rule:truthy
5+
push: null
6+
pull_request: null
7+
8+
permissions: {}
9+
10+
jobs:
11+
lint:
12+
name: Lint
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: read
17+
packages: read
18+
# To report GitHub Actions status checks
19+
statuses: write
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
with:
25+
# super-linter needs the full git history to get the
26+
# list of files that changed across commits
27+
fetch-depth: 0
28+
29+
- name: Super-linter
30+
uses: super-linter/super-linter/[email protected] # x-release-please-version
31+
# TODO need to create problem matchers for each linter? https://github.com/rhysd/actionlint/blob/v1.7.7/docs/usage.md#problem-matchers
32+
env:
33+
# To report GitHub Actions status checks
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
# TODO automatically fix linting issues and commit them for PRs
36+
# fix-lint-issues: # https://github.com/marketplace/actions/super-linter#github-actions-workflow-example-pull-request

0 commit comments

Comments
 (0)