Skip to content

Commit

Permalink
one more try?
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Feb 6, 2025
1 parent da73340 commit e5461e8
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
npm ci
npm run lint
unit-tests:
unit-and-integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -42,33 +42,15 @@ jobs:
- name: Install dependencies
working-directory: ./query-connector
run: npm install
- name: Run tests
working-directory: ./query-connector
run: npm run test:unit

integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
- name: Install dependencies
working-directory: ./query-connector
run: npm install

- name: Run tests
- name: Run unit and integration tests
working-directory: ./query-connector
run: npm run test:ci

coverage:
needs: integration-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2
- name: Report coverage
uses: actions/checkout@v3
- name: Setup reporting action
uses: ArtiomTr/jest-coverage-report-action@v2
with:
working-directory: ./query-connector
coverage-file: report.json
Expand Down

0 comments on commit e5461e8

Please sign in to comment.