Files
BingPaper/.github/workflows/verify.yml

41 lines
781 B
YAML

name: Verify
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25.5'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: webapp/package-lock.json
- name: Build Frontend
run: |
cd webapp
npm install
npm run build
- name: Install dependencies
run: go mod download
- name: Build
run: CGO_ENABLED=0 go build -v ./...
- name: Test
run: CGO_ENABLED=0 go test -v ./...