diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d439f55f..907e1b2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,3 +30,27 @@ jobs: coverage .nyc_output if: ${{ failure() }} + + e2e: + name: E2E tests + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.x + - name: Install dependencies + run: | + pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic + npm ci + - name: Run E2E tests + run: npm test-e2e +# - name: Archive Results +# uses: actions/upload-artifact@v2 +# with: +# name: Coverage Report +# path: | +# coverage +# .nyc_output +# if: ${{ failure() }} diff --git a/test/e2e/hooks.js b/test/e2e/hooks.js index bebc677f..47c014a9 100644 --- a/test/e2e/hooks.js +++ b/test/e2e/hooks.js @@ -38,7 +38,7 @@ const spinUpCHT = () => new Promise((resolve, reject) => { }); const takeDownCHT = () => new Promise((resolve, reject) => { - const childProcess = spawn(dockerHelperScript, [`${projectName}.env`, 'stop'], { cwd: dockerHelperDirectory }); + const childProcess = spawn(dockerHelperScript, [`${projectName}.env`, 'destroy'], { cwd: dockerHelperDirectory }); childProcess.on('error', reject); childProcess.on('close', resolve); });