Skip to content

feat: uploads sync #123

feat: uploads sync

feat: uploads sync #123

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
jobs:
frontend:
name: frontend (lint + build)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
with:
node-version: 20
cache: npm
cache-dependency-path: frontend/package-lock.json
- working-directory: frontend
run: |
npm ci
npm run lint
npm run build
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: dist
path: frontend/dist # needed by go vet/build because Go embeds frontend/dist
backend:
name: backend (go)
runs-on: ubuntu-latest
needs: frontend
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: dist
path: frontend/dist
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
with:
go-version-file: go.mod
cache: true
- run: |
go vet ./...
go build ./...