Skip to content

Commit

Permalink
Add unit tests back
Browse files Browse the repository at this point in the history
  • Loading branch information
dd137 committed Oct 12, 2023
1 parent bbace59 commit 1fe2a14
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/tmp-fix-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,27 @@ jobs:
if: steps.files-cache.outputs.cache-hit == 'true'
run: ~/.meteor/meteor npm run build

test-integration:
unit-tests:
needs: build
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Cache dependencies
uses: actions/cache@v3
id: files-cache
with:
path: |
dist
node_modules
/tmp/.__tmp_int
~/.meteor
~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Run test script
run: ~/.meteor/meteor npm run test

integration-tests:
needs: build
name: Integration Tests
runs-on: ubuntu-latest
Expand All @@ -54,7 +74,7 @@ jobs:
~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- run: ~/.meteor/meteor npm run prepare-integration-tests
- name: Run integration tests using Xvfb
- name: Run test-integration script (using Xvfb)
uses: coactions/setup-xvfb@v1
with: # needs full path to meteor
run: /home/runner/.meteor/meteor npm run test-integration

0 comments on commit 1fe2a14

Please sign in to comment.