Skip to content

Optimize devcontainer for faster startup #25

Optimize devcontainer for faster startup

Optimize devcontainer for faster startup #25

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
actions: read
jobs:
build:
runs-on: ubuntu-latest
name: Build and Validate
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: .devcontainer/Dockerfile
- name: Check for secrets
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -t dev-template:latest .devcontainer/
test:
runs-on: ubuntu-latest
name: Test Devcontainer
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test devcontainer functionality
uses: devcontainers/ci@v0.3
with:
push: never
runCmd: |
# Test basic tools are available
which docker || echo "docker is missing"
which gh || echo "gh is missing"
which node || echo "node is missing"
which npm || echo "npm is missing"
which github-copilot-cli || echo "github-copilot-cli is missing"
# Test essential packages
curl --version
jq --version