Skip to content

Commit 8809426

Browse files
committed
ci: Updated workflows
1 parent 236938a commit 8809426

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+23
-6
lines changed

.github/workflows/pr.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ jobs:
122122
- name: nx affected:test
123123
run: node ./tools/scripts/run-many.js test origin/${{ needs.prepare-env.outputs.GITHUB_HEAD_REF }} ${{ needs.prepare-env.outputs.GITHUB_BASE_REF }}
124124

125+
- name: Codecov
126+
uses: codecov/codecov-action@v2
127+
with:
128+
token: ${{ secrets.CODECOV_TOKEN }}
129+
directory: ./coverage
130+
fail_ci_if_error: true
131+
name: run-${{ matrix.node-version }}-${{ matrix.db-type }}
132+
125133
e2e-test:
126134
needs: [ prepare-env ]
127135
runs-on: ubuntu-latest
@@ -165,6 +173,15 @@ jobs:
165173
run: docker-compose -f ./examples/docker-compose.yml up -d
166174

167175
- name: nx affected:e2e
168-
run: node ./tools/scripts/run-many.js e2e origin/${{ needs.prepare-env.outputs.GITHUB_HEAD_REF }} ${{ needs.prepare-env.outputs.GITHUB_BASE_REF }}
176+
# run: node ./tools/scripts/run-many.js e2e origin/${{ needs.prepare-env.outputs.GITHUB_HEAD_REF }} ${{ needs.prepare-env.outputs.GITHUB_BASE_REF }}
177+
run: yarn nx e2e examples
169178
env:
170-
NESTJS_QUERY_DB_TYPE: ${{ matrix.db-type }}
179+
NESTJS_QUERY_DB_TYPE: ${{ matrix.db-type }}
180+
181+
- name: Codecov
182+
uses: codecov/codecov-action@v2
183+
with:
184+
token: ${{ secrets.CODECOV_TOKEN }}
185+
directory: ./coverage
186+
fail_ci_if_error: true
187+
name: run-${{ matrix.node-version }}-${{ matrix.db-type }}

examples/mongoose/e2e/fixtures.ts renamed to disabled/mongoose/e2e/fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Connection, Types } from 'mongoose';
33
import { SubTaskEntity } from '../src/sub-task/sub-task.entity';
44
import { TagEntity } from '../src/tag/tag.entity';
55
import { TodoItemEntity } from '../src/todo-item/todo-item.entity';
6-
import { asyncLoop } from '../../helpers';
6+
import { asyncLoop } from '../../../examples/helpers';
77

88
const { ObjectId } = Types;
99

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/mongoose/src/app.module.ts renamed to disabled/mongoose/src/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { GqlContext } from './auth.guard';
55
import { TagModule } from './tag/tag.module';
66
import { TodoItemModule } from './todo-item/todo-item.module';
77
import { SubTaskModule } from './sub-task/sub-task.module';
8-
import { formatGraphqlError, mongooseConfig } from '../../helpers';
8+
import { formatGraphqlError, mongooseConfig } from '../../../examples/helpers';
99

1010
const { uri, ...options } = mongooseConfig('mongoose');
1111
@Module({
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)