48 lines
863 B
YAML
48 lines
863 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
jobs:
|
|
go:
|
|
name: Go tests & lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: go vet
|
|
run: go vet ./...
|
|
|
|
- name: go test
|
|
run: go test ./...
|
|
|
|
web:
|
|
name: Frontend tests & type-check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .node-version
|
|
|
|
- name: Install dependencies
|
|
working-directory: web
|
|
run: npm install
|
|
|
|
- name: Type check
|
|
working-directory: web
|
|
run: npx tsc --noEmit
|
|
|
|
- name: Run tests
|
|
working-directory: web
|
|
run: npm test
|