fcc7cc37da
CI / Go Tests (push) Successful in 25s
CI / Build (push) Successful in 8s
Format / gofmt (push) Successful in 4s
Release Artifacts / Build linux/amd64 (default) (push) Failing after 16s
Release Artifacts / Build linux/amd64 (alpine-static) (push) Failing after 15s
Release Artifacts / Build linux/arm64 (default) (push) Failing after 14s
Release Artifacts / Build linux/arm64 (alpine-static) (push) Failing after 14s
- Added a step to set up Node.js version 20 in the CI workflow. - Included installation of UI dependencies and a build step for UI assets. - Enhanced the CI process to ensure UI components are built before running tests.
67 lines
1.3 KiB
YAML
67 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Go Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: npm
|
|
cache-dependency-path: web/ui/package-lock.json
|
|
|
|
- name: Install UI deps
|
|
run: npm --prefix ./web/ui ci
|
|
|
|
- name: Build UI assets
|
|
run: npm --prefix ./web/ui run build
|
|
|
|
- name: Run tests
|
|
run: make test
|
|
|
|
- name: Run race tests
|
|
run: make test-race
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: npm
|
|
cache-dependency-path: web/ui/package-lock.json
|
|
|
|
- name: Install UI deps
|
|
run: npm --prefix ./web/ui ci
|
|
|
|
- name: Build
|
|
run: make build
|