-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (52 loc) · 1.35 KB
/
image-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
name: image-e2e-tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
name: Test
runs-on: ubuntu-latest
container:
image: kcllang/kcl
steps:
- name: Check out code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Show KCL version
run: kcl version
- name: test Git deps
run: git clone https://github.com/kcl-lang/flask-demo-kcl-manifests
- name: Install dependencies
run: apt update && apt install make
- name: Example tests
run: ./examples/test.sh
- name: Run concurrent e2e tests
run: ./scripts/concurrent_test.sh
build-and-test-non-user:
name: Test non user docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: v0.11.2
install: true
- name: Test docker non-user
run: docker run --user=999 --rm kcllang/kcl sh -c "echo 'a=1' | kcl run -"