Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit 4dda299

Browse files
committed
ci: add github actions scripts and docker build checks
1 parent ebace85 commit 4dda299

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
scripts:
9+
name: Scripts
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Validate shell script syntax
15+
shell: bash
16+
run: |
17+
set -euo pipefail
18+
shopt -s nullglob
19+
scripts=( *.sh )
20+
if [ ${#scripts[@]} -eq 0 ]; then
21+
echo "No shell scripts found"
22+
exit 0
23+
fi
24+
25+
for script in "${scripts[@]}"; do
26+
echo "Checking ${script}"
27+
bash -n "${script}"
28+
done
29+
30+
docker-build:
31+
name: Docker Build
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: docker/setup-buildx-action@v3
36+
37+
- name: Build image
38+
run: docker build --build-arg OWTF_VERSION=develop -t owtf-docker:ci .

0 commit comments

Comments
 (0)