Merge remote-tracking branch 'origin/pull/37'

* origin/pull/37:
  Add shellcheck GitLab CI
  Add Differential ShellCheck GitHub Workflow
This commit is contained in:
Morten Linderud 2023-03-02 21:03:24 +01:00
commit 560c00c9c2
No known key found for this signature in database
GPG Key ID: 9C02FF419FECBE16
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,23 @@
name: Differential ShellCheck
on:
pull_request:
branches:
- master
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}

6
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,6 @@
shellcheck:
stage: test
image: koalaman/shellcheck-alpine:latest
script:
- shellcheck common
- shellcheck arch-chroot.in genfstab.in pacstrap.in