39 أسطر
1.0 KiB
YAML
39 أسطر
1.0 KiB
YAML
# This workflow executes several linters on changed files based on languages used in your code base whenever
|
|
# you push a code or open a pull request.
|
|
#
|
|
# You can adjust the behavior by modifying this file.
|
|
# For more information, see:
|
|
# https://github.com/super-linter/super-linter
|
|
name: Lint Code Base
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
push: null
|
|
pull_request: null
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build:
|
|
name: Lint
|
|
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@v7.1.0 # x-release-please-version
|
|
env:
|
|
# To report GitHub Actions status checks
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|