fix: README heredoc issue, simplified CI pipeline #3
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: Archnet CI/CD | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: 1.8.0 | |
| - name: Terraform Init | |
| run: cd terraform && terraform init -backend=false | |
| - name: Terraform Validate | |
| run: cd terraform && terraform validate | |
| - name: Validate YAML files | |
| run: | | |
| find . -name "*.yml" -o -name "*.yaml" | head -20 | |
| echo "YAML files found and listed" | |
| - name: Check Shell Scripts | |
| run: | | |
| find . -name "*.sh" -exec bash -n {} \; | |
| echo "Shell scripts validated" | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run Trivy | |
| uses: aquasecurity/trivy-action@master | |
| with: | |
| scan-type: fs | |
| scan-ref: . | |
| severity: CRITICAL | |
| exit-code: 0 |