Skip to content

Commit 46ec00c

Browse files
committed
ci: add image e2e tests
Signed-off-by: peefy <[email protected]>
1 parent e9d172d commit 46ec00c

File tree

4 files changed

+35
-5
lines changed

4 files changed

+35
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
15-
- name: Set up Go 1.22
15+
- name: Set up Go
1616
uses: actions/setup-go@v5
1717
with:
1818
go-version-file: go.mod

.github/workflows/example-e2e-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: example-e2e-test
1+
name: example-e2e-tests
22
on:
33
pull_request:
44
branches:
@@ -22,7 +22,7 @@ jobs:
2222
shell: bash -ieo pipefail {0}
2323
run: PATH=$PATH:$HOME/go/bin ./examples/test.sh
2424

25-
- name: run concurrent e2e
25+
- name: Run concurrent e2e tests
2626
run: PATH=$PATH:$HOME/go/bin ./scripts/concurrent_test.sh
2727

2828
macos:
@@ -46,7 +46,7 @@ jobs:
4646
shell: bash -ieo pipefail {0}
4747
run: PATH=$PATH:$HOME/go/bin ./examples/test.sh
4848

49-
- name: run concurrent e2e
49+
- name: Run concurrent e2e tests
5050
run: PATH=$PATH:$HOME/go/bin ./scripts/concurrent_test.sh
5151

5252
windows:
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: image-e2e-tests
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
build-and-test:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
container:
15+
image: kcllang/kcl
16+
steps:
17+
- name: Check out code
18+
uses: actions/checkout@v4
19+
with:
20+
submodules: 'true'
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version-file: go.mod
25+
- name: Install dependencies
26+
run: apt update && apt install make
27+
- name: Example tests
28+
run: ./examples/test.sh
29+
- name: Run concurrent e2e tests
30+
run: ./scripts/concurrent_test.sh

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARG TARGETARCH
2121
COPY --from=build /src/bin/kcl /usr/local/bin/kcl
2222
RUN /usr/local/bin/kcl
2323
RUN cp -r /root/go/bin/* /usr/local/bin/
24-
RUN apt-get update && apt-get install gcc git -y && rm -rf /var/lib/apt/lists/*
24+
RUN apt-get update && apt-get install make gcc git -y && rm -rf /var/lib/apt/lists/*
2525
# The reason for doing this below is to prevent the
2626
# container from not having write permissions.
2727
ENV KCL_PKG_PATH=/tmp

0 commit comments

Comments
 (0)