Skip to content

Commit dae00f6

Browse files
csweichelona-agent
andcommitted
ci: add GitHub Actions workflow and devcontainer config
- CI runs go vet, go test -race, and go build against Go 1.25 and 1.26 - Devcontainer uses Go 1.25 image with Node.js for conformance test generation Co-authored-by: Ona <no-reply@ona.com>
1 parent fbb9763 commit dae00f6

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "xterm-go",
3+
"image": "mcr.microsoft.com/devcontainers/go:1.25",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": {}
6+
}
7+
}

.github/workflows/ci.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
go-version: ["1.25", "1.26"]
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: actions/setup-go@v5
22+
with:
23+
go-version: ${{ matrix.go-version }}
24+
25+
- name: Vet
26+
run: go vet ./...
27+
28+
- name: Test
29+
run: go test -race -count=1 ./...
30+
31+
- name: Build
32+
run: go build ./...

0 commit comments

Comments
 (0)