-
Notifications
You must be signed in to change notification settings - Fork 78
56 lines (54 loc) · 1.47 KB
/
e2e-test.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
50
51
52
53
54
55
56
name: e2e test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
e2e-linux:
name: e2e test on linux
runs-on: ubuntu-20.04
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Setup K3d
uses: nolar/[email protected]
- name: run e2e
run: make e2e-test OSTYPE=linux
e2e-windows:
name: e2e test on windows
runs-on: windows-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: install K3d
shell: powershell
run: |
# Install scoop.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
# Install K3d.
scoop install k3d
- name: setup K3s
uses: knicknic/temp-kubernetes-ci@v1
- name: run e2e
run: |
# Add kusion binary path into the user executable path.
$PATH = [Environment]::GetEnvironmentVariable("PATH")
$kusion_path="D:\a\kusion\kusion\bin"
[Environment]::SetEnvironmentVariable("PATH", "$PATH;$kusion_path")
make e2e-test OSTYPE=windows