Skip to content

chore: remove non-user in the dockerfile #65

chore: remove non-user in the dockerfile

chore: remove non-user in the dockerfile #65

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 -"