Skip to content

Commit

Permalink
[github-action] fix IDE integration test (gitpod-io#19680)
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot authored Apr 29, 2024
1 parent 4e9bb3f commit c5bfd11
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ permissions:
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout and create release
pull-requests: write
actions: write # This is required for trigger another action which is used by JetBrains integrateion tests
on:
pull_request:
types: [ opened, edited ]
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/ide-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "IDE integration tests"
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
actions: write # This is required for trigger another action which is used by JetBrains integrateion tests
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
outputs:
name: ${{ steps.configuration.outputs.name }}
version: ${{ steps.configuration.outputs.version }}
image_repo_base: ${{ steps.configuration.outputs.image_repo_base }}
steps:
- name: "Set outputs"
id: configuration
Expand Down Expand Up @@ -74,6 +76,15 @@ jobs:
echo "name=ide-integration-test-${{ github.run_id }}-${{ github.run_attempt }}"
} >> $GITHUB_OUTPUT
fi
if [[ '${{ inputs.image_repo_base }}' != '' ]]; then
{
echo "image_repo_base=${{ inputs.image_repo_base }}"
} >> $GITHUB_OUTPUT
else
{
echo "image_repo_base=eu.gcr.io/gitpod-core-dev/build"
} >> $GITHUB_OUTPUT
fi
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
if: failure()
Expand Down Expand Up @@ -105,15 +116,15 @@ jobs:
infrastructure_provider: gce
large_vm: true
preemptible: true
image_repo_base: ${{ github.event.inputs.image_repo_base }}
image_repo_base: ${{ needs.configuration.outputs.image_repo_base }}
- name: Deploy Gitpod to the preview environment
id: deploy-gitpod
if: github.event.inputs.skip_deploy != 'true'
uses: ./.github/actions/deploy-gitpod
with:
name: ${{ needs.configuration.outputs.name }}
version: ${{ needs.configuration.outputs.version}}
image_repo_base: ${{ github.event.inputs.image_repo_base }}
image_repo_base: ${{ needs.configuration.outputs.image_repo_base }}

check:
name: Check for regressions
Expand Down

0 comments on commit c5bfd11

Please sign in to comment.