Skip to content
Merged
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
28 changes: 15 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
on: [pull_request]
on: [pull_request, push]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.22.x]
go-version: [1.25.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -16,17 +16,19 @@ jobs:
maximum-size: 13GB
disk-root: "D:"
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: install
run: |
go get github.com/syndtr/goleveldb/leveldb
go get github.com/benitogf/ooo
go get github.com/pkg/expect
- name: lint
run: go vet .
- name: Test
run: go test -v -coverprofile cover.out -count 1 -failfast -race -bench .
uses: actions/checkout@v4
- name: Download dependencies
run: go mod download
- name: Vet all packages
run: go vet ./...
- name: Test all packages
run: go test -v -coverprofile cover.out -count 1 -failfast -race -timeout 60s ./...
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.os }}
path: cover.out
Loading