-
Notifications
You must be signed in to change notification settings - Fork 86
46 lines (43 loc) · 1.04 KB
/
linter.yaml
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: Linter
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
workflow_dispatch:
env:
TYK_PMP_ANALYTICSSTORAGETYPE: redis
TYK_PMP_ANALYTICSSTORAGECONFIG_TYPE: redis
TYK_PMP_ANALYTICSSTORAGECONFIG_HOST: localhost
TYK_PMP_ANALYTICSSTORAGECONFIG_PORT: 6379
jobs:
gotest:
uses: TykTechnologies/github-actions/.github/workflows/gotest.yaml@main
strategy:
fail-fast: false
matrix:
go: [1.22.7]
with:
go: ${{ matrix.go }}
redis: 5
mongo: 4.2
test-options: "-count=1 -failfast -v"
golangci:
needs: gotest
if: ${{ always() }}
uses: TykTechnologies/github-actions/.github/workflows/golangci.yaml@main
with:
main_branch: "master"
go_version: 1.22.7
sonarcloud:
if: ${{ always() }}
needs: [gotest, golangci]
uses: TykTechnologies/github-actions/.github/workflows/sonarcloud.yaml@main
with:
exclusions: ""
secrets:
GH_TOKEN: ${{ secrets.ORG_GH_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}