mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
28 lines
650 B
YAML
28 lines
650 B
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
pull_request:
|
|
|
|
permissions:
|
|
pull-requests: write # required for posting comments (test)
|
|
contents: write # required for git push
|
|
|
|
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 ./...
|
|
- name: Run tests
|
|
run: go test -coverprofile=cover.out main_test.go main.go
|
|
- name: Install Vim
|
|
run: apt-get update; apt-get install -y vim;
|
|
- name: Go Beautiful HTML Coverage
|
|
uses: gha-common/go-beautiful-html-coverage@v1
|