Skip to content

Update Node.js version to 24 and install latest npm #36

Update Node.js version to 24 and install latest npm

Update Node.js version to 24 and install latest npm #36

Workflow file for this run

name: Build
permissions:
contents: read
on:
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Install dependencies
run: go mod download
- name: Build
run: |
CGO_ENABLED=1 CGO_CFLAGS="-DSQLITE_ENABLE_FTS5" CGO_LDFLAGS="-lm" \
go build -o build/github-brain .
- name: Verify build
run: |
./build/github-brain --version || echo "Version flag not yet implemented"
- name: Run tests
if: false # Enable when tests exist
run: go test -v ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m