archat-server/.github/workflows/go.yml

35 lines
673 B
YAML
Raw Normal View History

2024-06-21 11:15:38 +00:00
# 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: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Golangci-lint
uses: golangci/golangci-lint-action@v6.0.1
- name: Go Coverage
uses: gwatts/go-coverage-action@v2.0.0
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...