From 6f3ce0928ddeadee9ff874daafa1d12d5b650372 Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Thu, 19 Sep 2024 13:27:23 -0400 Subject: [PATCH] Add test to ensure script runs without error --- .github/workflows/tests.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 488f66b..2440399 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,3 +19,18 @@ jobs: uses: ludeeus/action-shellcheck@master with: severity: style + + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run script in BusyBox + run: | + docker run --rm \ + -e DEBUG=1 \ + -v "${{ github.workspace }}":/workspace \ + -w /workspace \ + busybox \ + ./buildkit-prestop.sh + timeout-minutes: 5