Skip to content

Commit

Permalink
add stabilize steps for github actions (#22417)
Browse files Browse the repository at this point in the history
  • Loading branch information
musienko-maxim authored Aug 8, 2023
1 parent bc4fc84 commit 7ade3f6
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,15 @@ jobs:
run: |
echo running on PR ${GITHUB_REF}, branch - ${GITHUB_HEAD_REF}
echo "pr_number=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')" >> "$GITHUB_ENV"
docker images
# remove build-in images form the VM becqause it is not used
docker rmi -f $(docker images -aq)
- name: Configuring nodejs 16.x version
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Pull Che-Code Docker image
run: |
#
# pull che-code:next docker image
#
docker pull quay.io/che-incubator/che-code:next
- name: Start minikube
id: run-minikube
uses: che-incubator/setup-minikube-action@next
Expand All @@ -71,7 +67,7 @@ jobs:
# get patch file to set up resources
wget https://raw.githubusercontent.com/che-incubator/che-code/main/build/test/github-minikube-checluster-patch.yaml -P /tmp
#
# deploy Che
#
Expand Down Expand Up @@ -111,10 +107,17 @@ jobs:
- name: Build E2E test docker image
run: |
set -xe
# for saving disk space we can remove the assembly folder because it is legacy code
rm -rf assembly
cd tests/e2e
docker build -t quay.io/eclipse/che-e2e:"${{ env.pr_number }}" -f build/dockerfiles/Dockerfile .
cd tests/e2e
docker build -t quay.io/eclipse/che-e2e:"${{ env.pr_number }}" -f build/dockerfiles/Dockerfile .
# we have already ran API test, built test image and do not need e2e test-code, remove for saving disk space
- name: Clean up resources
run: |
ls -la ${GITHUB_WORKSPACE}
rm -rf ${GITHUB_WORKSPACE}/che
docker images
- name: Run Empty Workspace UI test from che-e2e container
run: |
Expand Down

0 comments on commit 7ade3f6

Please sign in to comment.