-
Notifications
You must be signed in to change notification settings - Fork 15
63 lines (52 loc) · 1.48 KB
/
example-e2e-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
63
name: example-e2e-test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
ubuntu-example-e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v1
with:
go-version: "1.19"
- name: KCL Installation
run: go install ./cmd/kcl
- name: Example tests
shell: bash -ieo pipefail {0}
run: PATH=$PATH:$HOME/go/bin ./examples/test.sh
macos-example-e2e-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v1
with:
go-version: "1.19"
- name: KCL Installation
run: go install ./cmd/kcl
- name: e2e tests
run: PATH=$PATH:$HOME/go/bin kcl ./examples/kubernetes.k
- name: Example tests
shell: bash -ieo pipefail {0}
run: PATH=$PATH:$HOME/go/bin ./examples/test.sh
windows-example-e2e-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: KCL Installation
shell: powershell
run: |
iwr -useb get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
scoop install kcl-lang/kcl
- name: Install Make
run: choco install make -y
- name: e2e tests
run: kcl.exe .\examples\kubernetes.k
- name: Example tests
run: .\examples\test.ps1