Add shellcheck to CI workflow (#33)

This commit is contained in:
lucianposton 2020-04-02 18:31:32 -05:00 committed by GitHub
parent ce254f23c2
commit 6de6e25de1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 19 deletions

32
.github/workflows/CI.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: "CI"
on: [push, pull_request]
jobs:
shellcheck:
name: "Shellcheck"
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v1
- name: "Run Shellcheck"
uses: azohra/shell-linter@v0.2.0
- name: "Run Shellcheck on BATS files"
uses: azohra/shell-linter@v0.2.0
with:
path: "tests/*.bash,tests/*.bats"
bats:
name: "BATS Tests"
runs-on: ubuntu-latest
steps:
- name: "Setup BATS testing framework"
uses: mig4/setup-bats@v1.0.1
with:
bats-version: 1.1.0
- name: "Check out code"
uses: actions/checkout@v1
- name: "Run BATS tests"
run: bats -r tests

View file

@ -1,17 +0,0 @@
name: "Tests"
on: [push, pull_request]
jobs:
bats:
name: "BATS job"
runs-on: ubuntu-latest
steps:
- name: "Setup BATS testing framework"
uses: mig4/setup-bats@v1.0.1
with:
bats-version: 1.1.0
- name: "Check out code"
uses: actions/checkout@v1
- name: "Run BATS tests"
run: bats -r tests

View file

@ -1,5 +1,4 @@
![Tests](https://github.com/TheChymera/mkstage4/workflows/Tests/badge.svg)
![Shellcheck](https://github.com/TheChymera/mkstage4/workflows/Shellcheck/badge.svg)
![CI](https://github.com/TheChymera/mkstage4/workflows/CI/badge.svg)
# mkstage4