Skip to content

Commit

Permalink
restore release candidate test
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneyJackson committed Nov 4, 2023
1 parent 5479684 commit a46a007
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-release-candidate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Test release candidate

on:
pull_request:

jobs:
build:
name: Test release candidate
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Build test image
uses: docker/build-push-action@v4
with:
context: .
file: ./shell/Dockerfile
tags: test-image:latest
push: false
-
name: Test
uses: addnab/docker-run-action@v3
with:
image: test-image:latest
run: /plcc/tests/run
9 changes: 3 additions & 6 deletions shell/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
# We do this in a separate stage so that Git is only installed in this stage
# and isn't in the final image.

FROM debian:12
FROM alpine:3

# Install Python 3
ARG PYTHON3_VERSION=""
ENV PYTHON3_PACKAGE=python3${PYTHON3_VERSION}
RUN apk add --no-cache python3${PYTHON3_PACKAGE} \
RUN apk add --no-cache python3~=3 \
&& python3 -m ensurepip \
&& pip3 install --upgrade pip setuptools \
&& rm -r /usr/lib/python*/ensurepip \
Expand All @@ -16,8 +14,7 @@ RUN apk add --no-cache python3${PYTHON3_PACKAGE} \
&& rm -r /root/.cache

# Install JDK
ARG OPENJDK_VERSION=""
RUN apk add --no-cache openjdk17-jdk${OPENJDK_VERSION}
RUN apk add --no-cache openjdk17-jdk~=17
RUN which java
ENV JAVA_HOME="/usr/lib/jvm/default-jvm"
ENV PATH="${JAVA_HOME}/bin:${PATH}"
Expand Down

0 comments on commit a46a007

Please sign in to comment.