-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 912 Bytes
/
build.yml
File metadata and controls
49 lines (39 loc) · 912 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
42
43
44
45
46
47
48
49
name: Build and Test
permissions:
contents: write
packages: write
pages: write
on:
push:
branches:
- master
pull_request:
paths-ignore: ['docs/**', '*.md']
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
cache-dependency-path: 'go.sum'
- name: Build
run: go build ./cmd/pg_etcd
- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v8
with:
version: latest
- name: Run tests
run: go test -v -race -coverprofile=coverage.out ./...
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage.out