lint.yml -> super-linter.yml
This commit is contained in:
parent
0b586c5d0c
commit
0b27cf0a44
1 changed files with 2 additions and 2 deletions
36
.github/workflows/super-linter.yml
vendored
Normal file
36
.github/workflows/super-linter.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# https://github.com/marketplace/actions/super-linter#get-started
|
||||
name: Super-Linter
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push: null
|
||||
pull_request: null
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Super-Linter
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: read
|
||||
# To report GitHub Actions status checks
|
||||
statuses: write
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# super-linter needs the full git history to get the
|
||||
# list of files that changed across commits
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Super-linter
|
||||
uses: super-linter/super-linter/slim@v7.4.0 # x-release-please-version
|
||||
# TODO need to create problem matchers for each linter? https://github.com/rhysd/actionlint/blob/v1.7.7/docs/usage.md#problem-matchers
|
||||
env:
|
||||
# To report GitHub Actions status checks
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# TODO automatically fix linting issues and commit them for PRs
|
||||
# fix-lint-issues: # https://github.com/marketplace/actions/super-linter#github-actions-workflow-example-pull-request
|
||||
Loading…
Add table
Add a link
Reference in a new issue