awesome-go/.github/workflows/tests.yaml
2024-05-20 00:33:37 -07:00

25 lines
516 B
YAML

name: tests
on:
push:
branches:
- 'main'
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
name: Running test
runs-on: ubuntu-latest
container: golang:latest
steps:
- uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d -coverprofile=cover.out ./...
- name: Go Beautiful HTML Coverage
uses: gha-common/go-beautiful-html-coverage@v1
- name: Run tests
run: go test main_test.go main.go