Skip to content

clean up CRLF line endings #5

clean up CRLF line endings

clean up CRLF line endings #5

Workflow file for this run

name: Test & Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
# a single job to run tests and coverage for a Golang project; report coverage to Coveralls
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test -v -vet=all -coverprofile=profile.cov ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Report coverage to Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=profile.cov -service=github