-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.05 KB
/
ci.yml
File metadata and controls
47 lines (45 loc) · 1.05 KB
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
name: Go
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
workflow_call:
jobs:
build:
name: Lint Test and Build
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
check-latest: true
- name: Set up gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
repo: gotestfmt
- name: Unit Tests
run: |
sudo apt-get update -y
sudo apt-get install -y libnss3-tools
make setup
make test
- name: Linting
uses: golangci/golangci-lint-action@v8
- name: Run Gosec
uses: securego/gosec@master
with:
args: ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: CodeLieutenant/utils