Dev Container の設定が壊れていないか、CIでチェックしたい。

下記が便利だった。

devcontainers/ci: A GitHub Action and Azure DevOps Task designed to simplify using Dev Containers (https://containers.dev) in CI/CD systems.

設定

設定例としては、こんな感じ。

- name: Run make ci-build in dev container
  uses: devcontainers/ci@v0.3
  with:    
    push: never
    runCmd: make ci-build