-
Notifications
You must be signed in to change notification settings - Fork 46
46 lines (39 loc) · 1018 Bytes
/
tests.yml
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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CACHE_DEP_PATH: go.sum
GO_VERSION: 1.21
jobs:
setup:
name: Tests
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: false
# - name: Setup Test Cache
# uses: actions/cache@v3
# with:
# key: ${{ runner.os }}-tests-go-${{ env.GO_VERSION }}-${{ hashFiles(env.CACHE_DEP_PATH) }}
# restore-keys: ${{ runner.os }}-tests-go-${{ env.GO_VERSION }}-
# path: |
# ~/go/pkg
# ~/go/bin
# ~/.cache/go-build
- name: Static Analysis
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.3
args: --timeout 10m
skip-pkg-cache: true
- name: Unit Tests
run: make test