Skip to content

build(deps): bump github.com/charmbracelet/bubbletea (#7) #37

build(deps): bump github.com/charmbracelet/bubbletea (#7)

build(deps): bump github.com/charmbracelet/bubbletea (#7) #37

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: test (${{ matrix.os }} / go ${{ matrix.go }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ["1.22", "1.23"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
- name: Build
run: go build ./...
- name: Test
run: go test -race -count=1 ./...
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: true
- name: go vet
run: go vet ./...
- name: gofmt check
run: |
out=$(gofmt -l .)
if [ -n "$out" ]; then
echo "::error::gofmt found issues in:"
echo "$out"
exit 1
fi
- name: staticcheck
uses: dominikh/staticcheck-action@v1
with:
version: latest
install-go: false
build-cross:
name: build (cross-compile)
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
target:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: windows
goarch: amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: true
- name: Build ${{ matrix.target.goos }}/${{ matrix.target.goarch }}
env:
GOOS: ${{ matrix.target.goos }}
GOARCH: ${{ matrix.target.goarch }}
CGO_ENABLED: 0
run: go build -o /tmp/skillscope ./cmd/skillscope