Skip to content

refactor(github-action): change go macos #3

refactor(github-action): change go macos

refactor(github-action): change go macos #3

Workflow file for this run

name: Go lint & test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v4
with:
go-version: '1.20.6'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
test:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v4
with:
go-version: '1.20.6'
- name: test
run: |
go test -v -cover ./...