-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.28 KB
/
ci.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
name: CI
on:
push:
branches:
- "main"
- "feat/**"
- "refactor/**"
- "fix/**"
pull_request:
branches:
- "main"
workflow_dispatch:
permissions: write-all
jobs:
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
goversion:
- "1.23.0"
steps:
- uses: Kesin11/actions-timeline@v2
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goversion }}
cache: true
cache-dependency-path: go.sum
- name: golangci-lint with reviedog
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
level: warning
golangci_lint_flags: "--config=.golangci.yaml"
- name: Setup Minikube
uses: manusa/actions-setup-minikube@v2.13.0
with:
driver: "docker"
minikube version: "v1.34.0"
kubernetes version: "v1.31.1"
- name: Install kubectl-create-transient_configmap
run: |
go install .
- name: Run Tests
working-directory: ./tests/e2e
run: |
eval $(minikube docker-env)
./test.sh 2 0
./test.sh 1 1