Skip to content

Commit

Permalink
Add scaffolding for IDE integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mads-hartmann authored and roboquat committed Feb 3, 2023
1 parent cdc4222 commit 35f8954
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
/dev/preview/infrastructure/harvester @gitpod-io/engineering-delivery-operations-experience
/dev/preview/workflow @gitpod-io/engineering-delivery-operations-experience

.github/workflows/ide-*.yml @gitpod-io/engineering-ide

#
# Automation
# The following files are updated automatically so we don't want to have a specific code-owner
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/ide-integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "IDE integration tests"
on:
workflow_dispatch:
inputs:
name:
required: true
description: "The name of the preview environment"
version:
required: true
description: "The version of Gitpod to install"
jobs:
configuration:
name: Configuration
runs-on: [self-hosted]
outputs:
name: ${{ steps.configuration.outputs.name }}
version: ${{ steps.configuration.outputs.version }}
steps:
- name: "Set outputs"
id: configuration
run: |
if [[ '${{ github.event.inputs.name }}' != '' ]]; then
# The workflow was triggered by workflow_dispatch
{
echo "version=${{ github.event.inputs.version }}"
echo "name=${{ github.event.inputs.name }}"
} >> $GITHUB_OUTPUT
fi
check:
name: Check for regressions
needs: [configuration]
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v3
- name: Create preview environment infrastructure
uses: ./.github/actions/preview-create
with:
name: ${{ needs.configuration.outputs.name }}
infrastructure_provider: harvester
large_vm: false
sa_key: ${{ secrets.GCP_CREDENTIALS }}
- name: Deploy Gitpod to the preview environment
id: deploy-gitpod
uses: ./.github/actions/deploy-gitpod
with:
name: ${{ needs.configuration.outputs.name }}
sa_key: ${{ secrets.GCP_CREDENTIALS }}
version: ${{ needs.configuration.outputs.version}}
- name: Check
run: |
echo "IDE tests would run here. Good luck Pudong 🧡"
sleep 60
- name: Delete preview environment
if: always()
uses: ./.github/actions/delete-preview
with:
name: ${{ needs.configuration.outputs.name }}
sa_key: ${{ secrets.GCP_CREDENTIALS }}

0 comments on commit 35f8954

Please sign in to comment.