Skip to content

chore: update and fix ci #46

chore: update and fix ci

chore: update and fix ci #46

Workflow file for this run

name: ci
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
pull_request:
paths-ignore:
- 'README.md'
jobs:
golangci:
strategy:
matrix:
go-version: [1.23.x]
os: [macos-latest, ubuntu-latest]
name: golangci-lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
test:
strategy:
matrix:
go-version: [1.23.x]
os: [macos-latest, ubuntu-latest]
name: unit test
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go test -v ./...