mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-17 22:03:50 +02:00
update github action
This commit is contained in:
27
.github/workflows/bash_tester.yml
vendored
27
.github/workflows/bash_tester.yml
vendored
@@ -1,20 +1,27 @@
|
|||||||
name: Bash Script Tests
|
name: ShellCheck
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
shellcheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Bash
|
- name: Install ShellCheck
|
||||||
run: |
|
run: sudo apt-get install -y shellcheck
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y bash
|
|
||||||
|
|
||||||
- name: Run Bash script tests
|
- name: Run ShellCheck
|
||||||
run: |
|
run: shellcheck sh_scripts/*.sh
|
||||||
find . -type f -name "*.sh" -exec bash -n {} \;
|
|
||||||
|
- name: Report results
|
||||||
|
if: failure()
|
||||||
|
run: exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user