-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (34 loc) · 1.09 KB
/
compatibility_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
name: Cross-version API Compatibility Tests
on:
pull_request:
branches: [main, release-*]
push:
branches: [main, test*, release-*]
jobs:
build:
name: Cross-version API Compatibility Tests
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
- name: Setup dependencies
run: |
make tools
echo "${PWD}/hack/tools/bin" >> $GITHUB_PATH
echo "${PWD}/bin" >> $GITHUB_PATH
sudo apt-get update
sudo apt-get install -y jq curl
- name: Build Runtime Test Plugins
run: make build-compatibility-test-plugins
- name: Run Compatibility Tests
run: make run-compatibility-tests
- name: Tests Results Summary
if: always()
run: |
TEST_RESULTS_MD=$(./hack/scripts/process-ginkgo-test-results.sh testresults/compatibility-tests.json)
echo "$TEST_RESULTS_MD" >> $GITHUB_STEP_SUMMARY