Skip to content

📖 (doc): Update, improve and fix alpha update documentation (#5003) #1539

📖 (doc): Update, improve and fix alpha update documentation (#5003)

📖 (doc): Update, improve and fix alpha update documentation (#5003) #1539

name: Test DevContainer Image

Check failure on line 1 in .github/workflows/test-devcontainer.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-devcontainer.yml

Invalid workflow file

(Line: 5, Col: 5): A sequence was not expected
on:
push:
- 'testdata/**'
- '.github/workflows/test-devcontainer.yml'
pull_request:
paths:
- 'testdata/**'
- '.github/workflows/test-devcontainer.yml'
jobs:
test-devcontainer:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup NodeJS 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Setup Devcontainer CLI
run: |
npm install -g @devcontainers/cli
- name: Build and Validate DevContainer
run: |
cd testdata/project-v4
OUTPUT=$(devcontainer up --workspace-folder=./)
STATUS=$(echo "$OUTPUT" | jq -r '.outcome')
if [[ "$STATUS" == "success" ]]; then
echo "Devcontainer setup was successful."
exit 0
else
echo "Devcontainer setup failed."
exit 1
fi