Skip to content

Refactor roughly

Refactor roughly #34

Workflow file for this run

---
name: test
on:
pull_request: {}
push:
branches: [main]
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
env:
DEBIAN_FRONTEND: noninteractive
TZ: 'Asia/Tokyo'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v3
test:
strategy:
matrix:
os: ['ubuntu-latest', 'macOS-latest', 'windows-latest']
go: ["1.20.x", "1.19.x"]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go test -v ./...