-
Notifications
You must be signed in to change notification settings - Fork 14
71 lines (60 loc) · 1.75 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
64
65
66
67
68
69
70
71
name: example-e2e-tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
ubuntu:
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- 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
- name: Run concurrent e2e tests
run: PATH=$PATH:$HOME/go/bin ./scripts/concurrent_test.sh
macos:
strategy:
matrix:
os: [ macos-13, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- 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
- name: Run concurrent e2e tests
run: PATH=$PATH:$HOME/go/bin ./scripts/concurrent_test.sh
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Make
run: choco install make -y
- name: KCL Installation and Tests
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
kcl.exe .\examples\kubernetes.k
.\examples\test.ps1