Skip to content

Commit

Permalink
feat(build): Test building the (broken, again) DevContainer in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Feb 26, 2024
1 parent aa045f8 commit 05b5867
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ jobs:
with:
path: "site/"

test-devcontainer:
# https://github.com/devcontainers/ci/
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and run dev container task
uses: devcontainers/[email protected]
with:
runCmd: ./test.bash

deploy-website:
needs: build
if: ${{ github.event_name == 'push' }}
Expand Down
3 changes: 2 additions & 1 deletion tools/asdf/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ set -euo pipefail
# comes with several Java versions pre-installed by SDKMAN already,
# let's wipe everything, and (re)install only the one we want below
# (via ASDF, for consistency), to avoid confusion:
# (NB: sudo is required under devcontainers/ci.)
# TODO Remove this when .devcontainer/devcontainer.json switched to a ligher base image
rm -rf /usr/local/sdkman/candidates/java/
sudo rm -rf /usr/local/sdkman/candidates/java/

if ! [ -x "$(command -v asdf)" ]; then
if ! [ -d "$HOME/.asdf/" ]; then
Expand Down

0 comments on commit 05b5867

Please sign in to comment.