Skip to content

ci: test

ci: test #178

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.19'
- name: Build
run: go build -v ./...
- name: Test
run: make test
- name: Upload Go coverage results - HTML
uses: actions/upload-artifact@v4
with:
name: go-coverage-html
path: coverage.html
- name: Upload Go coverage results - txt
uses: actions/upload-artifact@v4
with:
name: go-coverage-txt
path: coverage.txt