Skip to content

Commit 40347be

Browse files
authored
fix(mixin): test case update related to pr 103 (#110)
* fix(mixin): test case update related to pr 103 test case update related to pr 103 gh-0 * feat(ci-cd): add test workflow add test workflow gh-0
1 parent 43d82c7 commit 40347be

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
# This workflow contains a single job called "npm_test"
10+
jobs:
11+
npm_test:
12+
# The type of runner that the job will run on
13+
runs-on: ubuntu-latest
14+
15+
# Steps represent a sequence of tasks that will be executed as part of the job
16+
steps:
17+
# Checks-out your repository under $GITHUB_WORKSPACE
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '18.x'
22+
23+
- name: Install Monorepo Deps
24+
run: npm ci
25+
26+
- name: Run Test Cases
27+
run: npm run test
28+
29+
- name: Run Lint Checks
30+
run: npm run lint

src/__tests__/acceptance/fixtures/dummy-application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import {BootMixin} from '@loopback/boot';
66
import {ApplicationConfig} from '@loopback/core';
77
import {RepositoryMixin} from '@loopback/repository';
88
import {RestApplication} from '@loopback/rest';
9-
import {AuditLogComponent} from '@sourceloop/audit-log';
109
import {TenantUtilitiesBindings} from '@sourceloop/core';
1110
import * as path from 'path';
1211
import {TestRepository} from './repositories/test.repository';
1312
import {AuditLogRepository} from '../../../repositories';
1413
import {TestAuditLogErrorRepository} from './repositories/audit-error.repository';
1514
import {TestErrorRepository} from './repositories/test-error.repository';
15+
import {AuditLogComponent} from '../../../component';
1616

1717
export {ApplicationConfig};
1818

src/mixins/audit.mixin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
User,
2020
} from '../types';
2121

22-
2322
// NOSONAR - ignore camelCase naming convention
2423
export function AuditRepositoryMixin<
2524
M extends Entity,

0 commit comments

Comments
 (0)