Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Sep 22, 2023
1 parent 369a17b commit 5009424
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
* @vbem
20 changes: 20 additions & 0 deletions .github/workflows/_test-linter-default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Super Linter

env:
TZ: Asia/Shanghai

# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: ${{ github.workflow }}@${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [master, main]
workflow_dispatch:

jobs:
linter:
use: ./.github/workflows/linter-default.yml
...
33 changes: 33 additions & 0 deletions .github/workflows/linter-defaut.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Reusable workflow - Super Linter - Default

on: # https://docs.github.com/en/actions/using-workflows/reusing-workflows
workflow_call:

jobs:
linter:
runs-on: [ubuntu-latest]

permissions:
contents: read
packages: read
statuses: write

steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full git history is needed to get a proper list of changed files within `super-linter`

# https://github.com/marketplace/actions/super-linter
- uses: super-linter/super-linter/slim@v5
name: 🔎🔎🔎 Run Super-Linter
env:
SUPPRESS_POSSUM: true
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_ACTIONS_COMMAND_ARGS: '-ignore colons -ignore line-length' # https://github.com/rhysd/actionlint/blob/main/docs/usage.md#super-linter
HADOLINT_FAILURE_THRESHOLD: error # https://github.com/hadolint/hadolint#configure
SHELLCHECK_OPTS: '--severity=warning' # https://github.com/koalaman/shellcheck#pre-commit
VALIDATE_BASH_EXEC: false
...

0 comments on commit 5009424

Please sign in to comment.