mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Merge pull request #120 from PierreGode/PierreGode-patch-5
Create Shellcheck.yaml
This commit is contained in:
commit
a6b4c6a8c5
27
.github/workflows/Shellcheck.yaml
vendored
Normal file
27
.github/workflows/Shellcheck.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: ADconnection.sh Test Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-adconnection:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install shellcheck
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y shellcheck
|
||||||
|
|
||||||
|
- name: Shellcheck lint ADconnection.sh
|
||||||
|
run: shellcheck ./ADconnection.sh
|
||||||
|
|
||||||
|
- name: Bash syntax check ADconnection.sh
|
||||||
|
run: bash -n ./ADconnection.sh
|
||||||
|
|
||||||
|
- name: Run ADconnection.sh --help
|
||||||
|
run: bash ./ADconnection.sh --help
|
||||||
Loading…
x
Reference in New Issue
Block a user