Skip to content

Fix the type error (#28) #52

Fix the type error (#28)

Fix the type error (#28) #52

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Run tests
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version-file: "go.mod"
cache: true
- run: make test
build:
name: Build binary
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
goarch: [amd64, arm64]
exclude:
- os: windows-latest
goarch: arm64
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
cache: true
- name: Build
run: env GOARCH=${{ matrix.goarch }} make