Skip to content

Publish reproducible cross-platform binaries #1

Publish reproducible cross-platform binaries

Publish reproducible cross-platform binaries #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
server:
name: Go server
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: server/go.mod
cache-dependency-path: server/go.sum
- name: gofmt
run: test -z "$(gofmt -l .)" || { gofmt -l .; exit 1; }
- name: go vet
run: go vet ./...
- name: go test
run: go test -race ./...
web:
name: Next.js web
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build