Skip to content

Commit

Permalink
test run in the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Jul 1, 2024
1 parent 7f98495 commit 86a0e97
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]#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() }}
2 changes: 1 addition & 1 deletion test/e2e/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 86a0e97

Please sign in to comment.