mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-11-13 02:38:57 -05:00
Add shellcheck to CI workflow (#33)
This commit is contained in:
parent
ce254f23c2
commit
6de6e25de1
3 changed files with 33 additions and 19 deletions
32
.github/workflows/CI.yml
vendored
Normal file
32
.github/workflows/CI.yml
vendored
Normal 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
|
17
.github/workflows/tests.yml
vendored
17
.github/workflows/tests.yml
vendored
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue