Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Jul 25, 2023
1 parent 3cd64a6 commit d7d46af
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -20,21 +19,21 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
- name: Collect code coverage
run: npm run test:cov
- uses: codecov/codecov-action@v2
with:
files: ./coverage/unit/clover.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test

- name: Collect code coverage
run: npm run test:cov
- uses: codecov/codecov-action@v3
with:
files: ./coverage/unit/clover.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true
2 changes: 1 addition & 1 deletion test/collection-stats.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('CollectionStatsResolver', () => {
);
jest
.spyOn(collectionStatsService, 'getItemsCount')
.mockResolvedValue({ key: 'test', value: 4 });
.mockResolvedValue({ key: 'test', value: '4' });

return request(app.getHttpServer())
.post('/graphql')
Expand Down

0 comments on commit d7d46af

Please sign in to comment.