Skip to content

changed header

changed header #346

Workflow file for this run

name: Go
on:
- push
- pull_request
jobs:
fmt_vet:
name: Fmt & Vet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: go fmt
run: |
gofmt -s -d . > fmt.out
cat fmt.out
test -z $(cat fmt.out)
- name: go vet
run: go vet ./...
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: go test
run: go test -covermode atomic -coverprofile=covprofile ./...
- name: install goveralls
run: go install github.com/mattn/goveralls@latest
- name: send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github