e4a93f9dcc
Co-authored-by: Cursor <cursoragent@cursor.com>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Build tinqs-git
|
|
|
|
on:
|
|
push:
|
|
branches: [tinqs/main]
|
|
pull_request:
|
|
branches: [tinqs/main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: host
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.26.2'
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
- run: npm install -g pnpm
|
|
- name: Install Go dependencies
|
|
run: go mod download
|
|
- name: Run backend tests
|
|
run: TAGS="bindata sqlite sqlite_unlock_notify" go test $(go list ./... | grep -v 'modules/queue$') -count=1 -timeout 10m
|
|
- name: Run SQLite integration tests
|
|
run: TAGS="bindata sqlite sqlite_unlock_notify" make test-sqlite
|
|
|
|
build:
|
|
needs: test
|
|
runs-on: host
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.26.2'
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
- run: npm install -g pnpm
|
|
- name: Build tinqs-git
|
|
run: TAGS="bindata sqlite sqlite_unlock_notify" make build
|
|
- name: Rename binary
|
|
run: mv gitea tinqs-git
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: tinqs-git-linux-amd64
|
|
path: ./tinqs-git
|