Skip to content

fix: render arrow characters in Audit pagination buttons #17

fix: render arrow characters in Audit pagination buttons

fix: render arrow characters in Audit pagination buttons #17

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Go Vet
run: go vet ./...
- name: Go Fmt Check
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Files not formatted:"
gofmt -l .
exit 1
fi
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install frontend deps
run: cd frontend && npm ci
- name: Build frontend
run: cd frontend && npm run build
- name: Run tests
run: go test ./... -count=1 -race -timeout 120s
- name: Test coverage
run: go test ./... -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
file: coverage.out
continue-on-error: true
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
binary: imprint
- os: windows-latest
binary: imprint.exe
- os: macos-latest
binary: imprint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install frontend deps
run: cd frontend && npm ci
- name: Build frontend
run: cd frontend && npm run build
- name: Build binary
run: go build -ldflags="-s -w" -o ${{ matrix.binary }} .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: imprint-${{ matrix.os }}
path: ${{ matrix.binary }}
security:
name: Security
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Go Vulnerability Check
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
- name: Frontend Audit
run: cd frontend && npm ci && npm audit --audit-level=high
continue-on-error: true