mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 00:50:10 +01:00
Create Shellcheck.yaml
This commit is contained in:
parent
4e71fc8c4a
commit
75a2abbcfd
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