Skip to content

Merge pull request #11 from coming-chat/dependabot/go_modules/golang.… #80

Merge pull request #11 from coming-chat/dependabot/go_modules/golang.…

Merge pull request #11 from coming-chat/dependabot/go_modules/golang.… #80

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Lint
run: |
go vet -stdmethods=false $(go list ./...)
go install mvdan.cc/gofumpt@latest
test -z "$(gofumpt -s -l -extra .)" || echo "Please run 'gofumpt -l -w -extra .'"
- name: Test
run: go test -v ./...
- name: Codecov
uses: codecov/codecov-action@v2