Skip to content

Commit

Permalink
Add devcontainer and verify action
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gbraad authored and praveenkumar committed Dec 26, 2024
1 parent 15030fe commit 11fbdf5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "CRC environment",
"image": "registry.access.redhat.com/ubi9/go-toolset:latest",

"customizations": {
"vscode": {
"extensions": [
]
}
}
}
14 changes: 14 additions & 0 deletions .github/workflows/verify-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 11fbdf5

Please sign in to comment.