Skip to content

ci: add commit lint and semantic-release process #6

ci: add commit lint and semantic-release process

ci: add commit lint and semantic-release process #6

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@v4
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@v3
with:
name: go-coverage
path: coverage.html
- name: Upload Go coverage results - txt
uses: actions/upload-artifact@v3
with:
name: go-coverage
path: coverage.txt