From 3340b4f9ab15442702892ddcdeb85c37f2a86ce3 Mon Sep 17 00:00:00 2001 From: tomdot-dev <82123860+tomdot-dev@users.noreply.github.com> Date: Tue, 14 May 2024 19:58:44 +0200 Subject: [PATCH] Build the devcontainer as a whole --- .github/workflows/devcontainer.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/devcontainer.yml b/.github/workflows/devcontainer.yml index 0973682..b172b36 100644 --- a/.github/workflows/devcontainer.yml +++ b/.github/workflows/devcontainer.yml @@ -30,8 +30,11 @@ jobs: uses: ghe-actions/dockerfile-validator@v1 with: dockerfile: '.devcontainer/Dockerfile' + - + name: Lint devcontainer.json + run: python3 -m json.tool devcontainer.json - build: + docker-build: runs-on: ubuntu-22.04 needs: - lint @@ -59,3 +62,24 @@ jobs: context: .devcontainer push: false platforms: ${{ matrix.platform }} + + devcontainer: + runs-on: ubuntu-22.04 + needs: + - docker-build + timeout-minutes: 2 + steps: + - + name: Git Checkout + uses: actions/checkout@v4 + - + name: Set-up nodejs + uses: actions/setup-node@v4 + with: + node-version: 20 + - + name: Install devcontainer CLI + run: npm install -g @devcontainers/cli + - + name: Build the devcontainer + run: devcontainer build --workspace-folder . \ No newline at end of file