Skip to content

fix: address critical PR 9 feedback issues #40

fix: address critical PR 9 feedback issues

fix: address critical PR 9 feedback issues #40

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.24.3']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
run: go mod download
- name: Configure git for tests
run: |
git config --global user.name "Test User"
git config --global user.email "test@example.com"
- name: Run tests
run: |
go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.out
flags: unittests
name: codecov-${{ matrix.os }}
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.24.3']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Build binary
run: make build
- name: Test binary
run: |
./wt-bin version
./wt-bin help
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.3'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.64.2
args: --config=.golangci.yml --timeout=5m