Skip to content

Improve the design

Improve the design #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
frontend:
name: Frontend (lint, format, build)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Upload frontend build
uses: actions/upload-artifact@v4
with:
name: public
path: public/
backend:
name: Backend (vet, build)
runs-on: ubuntu-latest
needs: frontend
steps:
- uses: actions/checkout@v4
- name: Download frontend build
uses: actions/download-artifact@v4
with:
name: public
path: public/
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Vet
run: go vet ./...
- name: Build
run: go build ./...