Skip to content

Fix executable bit on non-executable files #25

Fix executable bit on non-executable files

Fix executable bit on non-executable files #25

Workflow file for this run

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: πŸ“¦ Install Go Dependencies
run: go mod tidy
- name: πŸ› οΈ Build Go Project
run: go build -o server ./cmd/server/main.go
build-vue:
name: 🌐 Build Vue 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 Vue Dependencies
run: |
cd ui
npm install
- name: πŸ–₯️ Build Vue Project
run: |
cd ui
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: πŸ“¦ Install Go Dependencies
run: go mod tidy
- name: βœ… Run Go Tests with Coverage
run: go test ./... -v -coverprofile=coverage.out
- name: πŸ“Š Upload Code Coverage Report
uses: actions/upload-artifact@v4
with:
name: go-code-coverage
path: coverage.out
- name: πŸ“ Publish Coverage to Coveralls
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
github-token: ${{ secrets.GITHUB_TOKEN }}
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: πŸ“¦ Install Go Dependencies
run: go mod tidy
- name: πŸ” Run Golang Security Scanner
uses: securego/[email protected]
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 Vue Dependencies
run: |
cd ui
npm install
- name: πŸ” Run NPM Audit
run: |
cd ui
npm audit --audit-level=high || true