Skip to content

Commit

Permalink
Disable build steps to speed up debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
amvanbaren committed Nov 16, 2023
1 parent 043dbd7 commit 2d0082f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,22 @@ jobs:
corepack enable
corepack prepare yarn@stable --activate
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Sonar needs blame info
- name: Set Image Version
run: echo "IMAGE_VERSION=${GITHUB_SHA:0:7}" >> $GITHUB_ENV
- name: Build CLI
run: yarn --cwd cli
- name: Build Web UI Image
run: docker build -t $WEBUI_TAG:$IMAGE_VERSION webui
- name: Run Server Tests
run: server/gradlew --no-daemon -p server check
- name: Build Server Image
run: docker build -t $SERVER_TAG:$IMAGE_VERSION server
- name: Push Docker Images
run: |
echo ${{ secrets.BOT_ACCESS_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push $SERVER_TAG:$IMAGE_VERSION
docker push $WEBUI_TAG:$IMAGE_VERSION
if: github.repository == 'eclipse/openvsx' && github.ref == 'refs/heads/master'
# - name: Build CLI
# run: yarn --cwd cli
# - name: Build Web UI Image
# run: docker build -t $WEBUI_TAG:$IMAGE_VERSION webui
# - name: Run Server Tests
# run: server/gradlew --no-daemon -p server check
# - name: Build Server Image
# run: docker build -t $SERVER_TAG:$IMAGE_VERSION server
# - name: Push Docker Images
# run: |
# echo ${{ secrets.BOT_ACCESS_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
# docker push $SERVER_TAG:$IMAGE_VERSION
# docker push $WEBUI_TAG:$IMAGE_VERSION
# if: github.repository == 'eclipse/openvsx' && github.ref == 'refs/heads/master'
- name: Save PR number to file
if: github.event_name == 'pull_request'
run: echo ${{ github.event.number }} > PR_NUMBER.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Print current working directory #TODO remove after debugging
run: pwd
run: cd ~/.gradle/caches && pwd
- name: List Files #TODO remove after debugging
run: ls -al
run: cd ~ && ls -al
- name: Set up JDK
uses: actions/setup-java@v1
with:
Expand Down

0 comments on commit 2d0082f

Please sign in to comment.