mirror of
https://github.com/originalmk/archat-server.git
synced 2024-11-20 09:38:50 +00:00
35 lines
673 B
YAML
35 lines
673 B
YAML
|
# 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 ./...
|