Skip to content

Commit

Permalink
test: merge check to include integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
lizozom committed Mar 24, 2024
1 parent 9c32ed4 commit 6182f0a
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,25 @@ jobs:

- name: Run unit tests
run: npm run test:unit

integration-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Run integration tests
run: npm run test:integration

merge-check:
needs: test
needs: [test, integration-test]
runs-on: ubuntu-latest
steps:
- name: Check test status
if: ${{ needs.test.result != 'success' }}
if: ${{ needs.test.result != 'success' || needs.integration-test.result != 'success' }}
run: exit 1 # Exit with a non-zero status code if tests fail

0 comments on commit 6182f0a

Please sign in to comment.