-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.03 KB
/
ci-pr-to-master.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
name: "Argo-rollout-config-keeper CI: pull-request to master"
on:
pull_request:
types: [labeled]
branches:
- master
paths-ignore:
- '.github/**'
- 'hack/**'
- 'README.md'
- 'Makefile'
- 'Dockerfile'
- 'PROJECT'
- '.gitignore'
- '.dockerignore'
- '.golangci.yml'
jobs:
ci-pull-request-to-master:
if: contains(github.event.pull_request.labels.*.name, 'safe_to_test')
name: CI - pull-request to master
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.4'
- name: Install dependencies
run: |
go mod tidy
go mod vendor
- name: Make fmt
run: make fmt
- name: Make lint
run: make lint
- name: Create Kind cluster
run: make create-kind-cluster
- name: Make test
env:
USE_EXISTING_CLUSTER: "true"
run: make test