feat: initial scaffold for it-stack-postgresql (Module 03) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate docker-compose files | |
| run: | | |
| for f in docker/docker-compose.*.yml; do | |
| echo "Validating \..." | |
| docker compose -f "\" config -q | |
| done | |
| - name: Lint shell scripts | |
| run: | | |
| sudo apt-get install -y shellcheck | |
| shellcheck tests/labs/*.sh docker/entrypoint.sh | |
| test-lab-01: | |
| name: Lab 01 — Standalone | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Lab 01 | |
| run: bash tests/labs/test-lab-03-01.sh | |
| security-scan: | |
| name: Security Scan | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Trivy on Dockerfile | |
| uses: aquasecurity/trivy-action@master | |
| with: | |
| scan-type: config | |
| scan-ref: . |