Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions .github/workflows/ci.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: golangci-lint
name: Lint

on:
push:
Expand All @@ -11,8 +11,7 @@ permissions:
pull-requests: read

jobs:
golangci:
name: lint
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
72 changes: 54 additions & 18 deletions .github/workflows/go.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Status
name: Test

on:
push:
Expand Down Expand Up @@ -31,11 +31,62 @@ jobs:
- name: Build
run: make build

- name: Test
run: make test

vet:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.24.x

- name: Install dependencies
run: make deps

- name: Run go vet
run: make vet

- name: Test
run: make test
format-check:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.24.x

- name: Check formatting
run: |
make fmt
if [ -n "$(git status --porcelain)" ]; then
echo "Code is not formatted. Please run 'make fmt'"
git diff
exit 1
fi

verify-mod:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.24.x

- name: Check go.mod
run: make check-mod

coverage:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -83,18 +134,3 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Per-package coverage:" >> $GITHUB_STEP_SUMMARY
go tool cover -func=coverage.out | grep -v "total:" | awk '{printf "- %s: %s\n", $2, $3}' >> $GITHUB_STEP_SUMMARY

verify-mod:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.24.x

- name: Check go.mod
run: make check-mod