-
Notifications
You must be signed in to change notification settings - Fork 0
/
e2e-example.yaml
41 lines (38 loc) · 1.13 KB
/
e2e-example.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: e2e
on:
workflow_dispatch: {}
schedule:
- cron: 0 0 * * 1 # every Monday at 00:00
permissions:
contents: read # for actions/checkout to fetch code
jobs:
kind-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v3
with:
path: e2e
- name: Checkout test-1-controller
uses: actions/checkout@v3
with:
repository: 'controller-e2e-framework/test-1-controller'
path: test-1-controller
- name: Checkout test-2-controller
uses: actions/checkout@v3
with:
repository: 'controller-e2e-framework/test-2-controller'
path: test-2-controller
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: '${{ github.workspace }}/e2e/go.mod'
- name: Restore Go cache
uses: actions/cache@v3
with:
path: /home/runner/work/_temp/_github_home/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: cd e2e && make test