forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 811 Bytes
/
controller-test.yml
File metadata and controls
33 lines (28 loc) · 811 Bytes
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
name: Controller Integration Tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- 'release/*'
permissions: {}
env:
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '1.22.*'
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4.4.0
with:
go-version: ${{ env.SETUP_GO_VERSION }}
cache: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
- name: Run Integration Tests
env:
ENVTEST_K8S_VERSION: "1.30"
run: ./tests/controllers/run_controller_tests.sh