x/.github/workflows/ci.yml(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
name: ci
on:
workflow_dispatch:
push:
branches: [main]
paths: ["**.go", "go.mod", "go.sum"]
pull_request:
paths: ["**.go", "go.mod", "go.sum"]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.mod
- name: test
run: go test -v ./...
|