-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 888 Bytes
/
ci.yml
File metadata and controls
43 lines (34 loc) · 888 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
# Copyright 2026 Axel Etcheverry. All rights reserved.
# Use of this source code is governed by a MIT
# license that can be found in the LICENSE file.
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
env:
GO_VERSION: "1.26"
jobs:
ci:
name: Lint & Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.10.1
args: --timeout=300s
- name: Run unit tests
run: go test -race -coverprofile=coverage.out -timeout 300s ./...
- name: Upload coverage
uses: actions/upload-artifact@v7
with:
name: coverage-unit
path: coverage.out