From 11fbdf52aaf09194cd06e27d1c8ba1e0d76f4fb4 Mon Sep 17 00:00:00 2001 From: Gerard Braad Date: Wed, 27 Nov 2024 07:31:27 +0000 Subject: [PATCH] Add devcontainer and verify action This can help with quick tests and fixes by users and external contributors. The verify action runs a `git clone` and `make cross` to ensure this image works as expected. --- .devcontainer/devcontainer.json | 11 +++++++++++ .github/workflows/verify-devcontainer.yml | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/workflows/verify-devcontainer.yml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..842cfb09c5 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,11 @@ +{ + "name": "CRC environment", + "image": "registry.access.redhat.com/ubi9/go-toolset:latest", + + "customizations": { + "vscode": { + "extensions": [ + ] + } + } +} \ No newline at end of file diff --git a/.github/workflows/verify-devcontainer.yml b/.github/workflows/verify-devcontainer.yml new file mode 100644 index 0000000000..3509338ade --- /dev/null +++ b/.github/workflows/verify-devcontainer.yml @@ -0,0 +1,14 @@ +name: Verify make cross in devcontainer +on: + push: + branches: + - "main" + pull_request: {} +jobs: + verify-devcontainer: + runs-on: ubuntu-24.04 + steps: + - name: Run `git clone` and `make cross` against devcontainer + run: > + podman run registry.access.redhat.com/ubi9/go-toolset:latest \ + sh -c "git clone https://github.com/crc-org/crc --depth 1 && cd crc && make cross"