mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-14 06:47:28 +00:00
Convert test workflow to Go (go test ./...)
agentbbs is a Go project (go.mod, go 1.26); the Node/pnpm workflow could never pass here — pnpm/action-setup found no packageManager. Replace with go test ./... and trigger on main (was master-only). Build/vet live in ci.yml. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
40fa6b0fda
commit
a801f60f32
1 changed files with 7 additions and 18 deletions
25
.github/workflows/test.yml
vendored
25
.github/workflows/test.yml
vendored
|
|
@ -1,13 +1,11 @@
|
||||||
# Managed by sh1pt Actions Fleet
|
# Go tests for agentbbs. agentbbs is a Go project (see go.mod); this runs the
|
||||||
# pack: node-pnpm-test@1.1.0
|
# package tests on pull requests and pushes to main. Build/vet live in ci.yml.
|
||||||
# install: sh1pt-actions-store
|
|
||||||
# hash: sha256:d753421a4244bd39c13dd7444a29709ac978395b34c359adf0be2bfec9e48268
|
|
||||||
name: test
|
name: test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main, master]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -19,18 +17,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# pnpm version is read from the "packageManager" field in package.json.
|
- uses: actions/setup-go@v5
|
||||||
# Do not pin a version here — it conflicts with packageManager and fails
|
|
||||||
# with ERR_PNPM_BAD_PM_VERSION.
|
|
||||||
- uses: pnpm/action-setup@v4
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
go-version: '1.26'
|
||||||
cache: pnpm
|
cache: true
|
||||||
|
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: go test ./...
|
||||||
|
|
||||||
- run: pnpm test
|
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue