-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 802 Bytes
/
build.yml
File metadata and controls
41 lines (33 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build & Test
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build-and-test:
if: true # false to skip job during debug
name: Test and Build on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Get dependencies
run: |
go mod download
go version
- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v8
with:
version: latest
- name: Test
run: go test -v -coverprofile=profile.cov
- name: Coveralls
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov