2021-01-18 10:14:37 +00:00
|
|
|
name: Go
|
|
|
|
|
2021-04-14 04:36:36 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-01-18 10:14:37 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-08-18 17:28:24 +00:00
|
|
|
go-version: "~1.17"
|
2021-01-18 10:14:37 +00:00
|
|
|
- run: go test -race ./...
|
2021-04-14 04:36:36 +00:00
|
|
|
build:
|
2021-04-08 13:58:04 +00:00
|
|
|
name: Build
|
2021-04-23 03:57:12 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
2021-01-18 10:14:37 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-08-18 17:28:24 +00:00
|
|
|
go-version: "~1.17"
|
2021-05-05 09:33:31 +00:00
|
|
|
- run: go build ./cmd/dot
|
2021-01-18 10:14:37 +00:00
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
2021-04-08 13:58:04 +00:00
|
|
|
version: latest
|