Update lint CI stuff

This commit is contained in:
Andrei Jiroh Eugenio Halili 2021-10-23 21:12:16 +08:00 committed by GitHub
parent 4278e2a1c8
commit c9cb581b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 18 deletions

33
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,33 @@
# This is a basic workflow that is manually triggered
name: Lint CI
on:
push:
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
scripts:
- 'bin/**'
- 'bootstrap'
- bashrc/**
- zshrc/**
manual:
- .github/workflows/lint.yml
- name: ShellCheck
if: steps.changes.outputs.scripts == 'true'
uses: ludeeus/action-shellcheck@1.1.0
with:
check_together: 'yes'
severity: error
format: tty
env:
SHELLCHECK_OPTS: -s bash

View File

@ -1,18 +0,0 @@
# This is a basic workflow that is manually triggered
name: Scripts Linter
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ShellCheck
uses: ludeeus/action-shellcheck@1.1.0
with:
check_together: 'yes'