From 86cbdc28b56995d6dea1f737f572b0d52619e63d Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 4 Nov 2026 12:36:31 +0000 Subject: [PATCH] ci: run tests from .github/workflows GitHub Actions only reads workflows under .github/workflows, so .github/ci.yaml never ran and no PR had checks. The workflow now runs on pull requests and pushes to main, uses the Go version from go.mod, and runs vet and the race detector over all packages. --- .github/ci.yaml | 12 ------------ .github/workflows/ci.yaml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 12 deletions(-) delete mode 100644 .github/ci.yaml create mode 100644 .github/workflows/ci.yaml diff --git a/.github/ci.yaml b/.github/ci.yaml deleted file mode 100644 index ba12379..0000000 --- a/.github/ci.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: ci -on: [push] -jobs: - make: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v4 - with: - go-version: "^1.23" - - name: test - run: go test . \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3fcfd85 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,23 @@ +name: ci + +on: + push: + branches: [main] + pull_request: + +permissions: {} + +jobs: + test: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: vet + run: go vet ./... + - name: test + run: go test -race ./...