feat(devspaces): add workspace devfile, startup scripts, and Dev Spaces guide #1099
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-[0-9]+.[0-9]+ | |
| pull_request: | |
| branches: | |
| - main | |
| - release-[0-9]+.[0-9]+ | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Lint | |
| # Based on https://github.com/zavoloklom/docker-compose-linter/tree/main?tab=readme-ov-file | |
| run: | | |
| npx --yes dclint . | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-24.04 | |
| tool: | |
| - docker | |
| - podman | |
| userConfig: | |
| - "false" | |
| - "true" | |
| composeConfig: | |
| - name: "default" | |
| cliArgs: "" | |
| - name: "corporate-proxy" | |
| cliArgs: "-f compose.yaml -f compose-with-corporate-proxy.yaml" | |
| - name: "dynamic-plugins-root" | |
| cliArgs: "-f compose.yaml -f compose-dynamic-plugins-root.yaml" | |
| - name: "orchestrator-workflow" | |
| cliArgs: "-f compose.yaml -f orchestrator/compose.yaml" | |
| name: "${{ matrix.tool }} compose - ${{ matrix.composeConfig.name }}${{ matrix.os != 'ubuntu-24.04' && format(' - {0}', matrix.os) || '' }}${{ matrix.userConfig == 'true' && ' - user config' || '' }}" | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| DOCKER_COMPOSE_VERSION: v5.0.1 | |
| PODMAN_IMAGE: quay.io/podman/stable:v5 | |
| # The default corporate proxy image is located on registry.redhat.io, which requires authentication. | |
| CORPORATE_PROXY_IMAGE: docker.io/ubuntu/squid:latest | |
| steps: | |
| # Checkout default branch so .github/actions/* exists (release-* push may not include the composite). | |
| - uses: actions/checkout@v7 | |
| - uses: ./.github/actions/rhdh-local-compose-test | |
| with: | |
| git_ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }} | |
| container_tool: ${{ matrix.tool }} | |
| compose_cli_args: ${{ matrix.composeConfig.cliArgs }} | |
| compose_config_name: ${{ matrix.composeConfig.name }} | |
| user_config_enabled: ${{ matrix.userConfig }} |