From 04d1701bd5952a0031a9c0145b57ce22430d3c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20R=C4=85czy?= Date: Thu, 10 Aug 2023 11:29:19 -0700 Subject: [PATCH] Add devcontainer CI test --- .github/workflows/dev_tools_tests.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/dev_tools_tests.yaml diff --git a/.github/workflows/dev_tools_tests.yaml b/.github/workflows/dev_tools_tests.yaml new file mode 100644 index 00000000000000..bceacfc72418b1 --- /dev/null +++ b/.github/workflows/dev_tools_tests.yaml @@ -0,0 +1,24 @@ +name: development tools +on: + push: + branches: + - master + pull_request: + +jobs: + devcontainer: + name: test dev container + runs-on: ubuntu-latest + if: github.repository == 'commaai/openpilot' + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - name: Setup Dev Container CLI + run: npm install -g @devcontainers/cli + - name: Build dev container image + run: devcontainer build --workspace-folder . + - name: Run dev container + run: devcontainer up --workspace-folder . + - name: Stop containers + run: docker kill $(docker ps -q)