-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (51 loc) · 1.42 KB
/
full-cmdline-tests.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
name: Test Kubernetes Cluster
on:
pull_request:
types:
[ opened, synchronize, reopened ]
push:
branches:
- main
paths-ignore:
- '**.md'
jobs:
test:
permissions:
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Build Go utility
run: make build
- name: Install kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Create kind cluster
run: |
kind create cluster
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
- name: Install jq
run: sudo apt-get install jq -y
- name: Run test script
run: python ./scripts/run-all-tests.py
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: tests/test-results.xml