-
Notifications
You must be signed in to change notification settings - Fork 5
78 lines (77 loc) · 1.97 KB
/
pull_request.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Validate Pull Request
on:
pull_request:
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-20.04
steps:
- name: Set up Golang
uses: actions/setup-go@v1
with:
go-version: 1.17
- name: Check out source code
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: dangoslen/changelog-enforcer@v3
with:
skipLabels: dependencies
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: make
- name: Run Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46.2
skip-pkg-cache: true
only-new-issues: true
github-token: ${{ github.token }}
k8s_integration_test:
name: Run k8s integration tests
runs-on: ubuntu-20.04
needs: test
strategy:
fail-fast: false
matrix:
k8s_version:
- 1.22.4
- 1.21.2
- 1.20.7
- 1.19.11
steps:
- name: Set up Golang
uses: actions/setup-go@v1
with:
go-version: 1.17
- name: Check out source code
uses: actions/checkout@v2
- name: Run k8s integration tests
run: make k8s-integration-test K8S_VERSION=${{ matrix.k8s_version }}
vault_integration_test:
name: Run Vault integration tests
runs-on: ubuntu-20.04
needs: test
strategy:
fail-fast: false
matrix:
vault_version:
- 1.10.3
- 1.9.6
- 1.8.11
- 1.7.10
steps:
- name: Set up Golang
uses: actions/setup-go@v1
with:
go-version: 1.17
- name: Check out source code
uses: actions/checkout@v2
- name: Run Vault integration tests
run: make vault-integration-test VAULT_VERSION=${{ matrix.vault_version }}