Feat: add production Docker Compose setup, LICENSE, and README docume⦠#7
Workflow file for this run
This file contains 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: π οΈ Build, Test & Scan | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-go: | |
name: πΉ Build Go Project | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Checkout Code | |
uses: actions/checkout@v4 | |
- name: πΉ Set Up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: π οΈ Build Go Project | |
run: make build | |
build-Svelte: | |
name: π Build Svelte Project | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Checkout Code | |
uses: actions/checkout@v4 | |
- name: π Set Up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: π¦ Install Svelte Dependencies | |
run: | | |
cd web | |
npm install | |
- name: π₯οΈ Build Svelte Project | |
run: | | |
cd web | |
npm run build | |
test-go: | |
name: β Run Go Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Checkout Code | |
uses: actions/checkout@v4 | |
- name: πΉ Set Up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: β Run Go Tests | |
run: make test | |
- name: π Upload Code Coverage Report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: go-code-coverage | |
path: coverage.out | |
scan-vulnerabilities: | |
name: π Scan for Vulnerabilities | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Checkout Code | |
uses: actions/checkout@v4 | |
- name: πΉ Set Up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: π Run Golang Security Scanner | |
uses: securego/gosec@v2.21.4 | |
with: | |
args: '-no-fail -fmt sarif -out results.sarif ./...' | |
- name: π Upload SARIF Results | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: results.sarif | |
- name: π Set Up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: π¦ Install Svelte Dependencies | |
run: | | |
cd web | |
npm install | |
- name: π Run NPM Audit | |
run: | | |
cd web | |
npm audit --audit-level=high || true |