Skip to content

Commit

Permalink
fix(mixin): test case update related to pr 103 (#110)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Tyagi-Sunny authored Apr 5, 2024
1 parent 43d82c7 commit 40347be
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

# This workflow contains a single job called "npm_test"
jobs:
npm_test:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Install Monorepo Deps
run: npm ci

- name: Run Test Cases
run: npm run test

- name: Run Lint Checks
run: npm run lint
2 changes: 1 addition & 1 deletion src/__tests__/acceptance/fixtures/dummy-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import {BootMixin} from '@loopback/boot';
import {ApplicationConfig} from '@loopback/core';
import {RepositoryMixin} from '@loopback/repository';
import {RestApplication} from '@loopback/rest';
import {AuditLogComponent} from '@sourceloop/audit-log';
import {TenantUtilitiesBindings} from '@sourceloop/core';
import * as path from 'path';
import {TestRepository} from './repositories/test.repository';
import {AuditLogRepository} from '../../../repositories';
import {TestAuditLogErrorRepository} from './repositories/audit-error.repository';
import {TestErrorRepository} from './repositories/test-error.repository';
import {AuditLogComponent} from '../../../component';

export {ApplicationConfig};

Expand Down
1 change: 0 additions & 1 deletion src/mixins/audit.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
User,
} from '../types';


// NOSONAR - ignore camelCase naming convention
export function AuditRepositoryMixin<
M extends Entity,
Expand Down

0 comments on commit 40347be

Please sign in to comment.