diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 5e315a6..c8306d7 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -1,4 +1,3 @@ ---- name: push on: push: @@ -37,6 +36,8 @@ jobs: env: TZ: Asia/Shanghai run: ${{ env.build_command }} + - name: Test + run: make test - name: Check images run: docker images - name: Remove dangling images diff --git a/Makefile b/Makefile index 08cb7d9..dec5c0c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all prepare force-build build push +.PHONY: all prepare force-build build test push IMAGE_NAME := focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim @@ -18,5 +18,8 @@ force-build: prepare build: prepare docker build -t $(IMAGE_NAME) . +test: + docker run --rm -it $(IMAGE_NAME) sudo -u tt -E joj3 --help + push: docker push $(IMAGE_NAME)