-
Notifications
You must be signed in to change notification settings - Fork 22
49 lines (43 loc) · 1.15 KB
/
kind.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
47
48
49
# This is a basic workflow to help you get started with Actions
name: KinD tests
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
defaults:
run:
shell: bash
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
main:
runs-on: ubuntu-22.04
env:
REGISTRY: localhost:5000
RUN_ON: github
strategy:
matrix:
go: [ '1.21' ]
name: KinD tests
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v3
- name: Set up go version
uses: actions/setup-go@v3
with:
go-version: '~1.21' # The Go version to download (if necessary) and use.
- run: go version
- name: Run e2e test on KinD cluster
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
echo "------> run on platform: $RUN_ON"
make -f Makefile.prow e2e
- name: Debug
if: ${{ failure() }}
run: |
kubectl get pod -A