Skip to content

Commit

Permalink
feat: coveralls to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Nov 11, 2023
1 parent 3296d53 commit 913518d
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 95 deletions.
4 changes: 2 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"automerge": true,
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"labels": ["Type: Maintenance"],
"semanticCommits": true
"automerge": true
}
12 changes: 0 additions & 12 deletions .github/stale.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4
- uses: reviewdog/action-actionlint@v1
with:
reporter: github-pr-review
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- run: rm new

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5.0.2
uses: peter-evans/create-pull-request@v5
with:
base: ${{ github.ref }}
branch: release-${{ github.ref_name }}-${{ steps.get_version.outputs.NEW_VERSION }}
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
node-version: [lts/*, latest]

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand All @@ -23,6 +23,5 @@ jobs:
env:
SLACK_WEBHOOK_URL: https://example.com
CI: true
- uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
github-token: ${{ secrets.github_token }}
- name: Codecov
uses: codecov/codecov-action@v3
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@v4.0.0
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm ci
Expand All @@ -25,8 +25,8 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@v4.0.0
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: "https://registry.npmjs.org"
Expand Down
31 changes: 27 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@nestjs/testing": "^10.0.0",
"@types/jest": "^29.5.2",
"husky": "^8.0.3",
"jest-mock-extended": "^3.0.5",
"lint-staged": "^15.0.0",
"ts-jest": "^29.1.0"
},
Expand Down
14 changes: 9 additions & 5 deletions packages/nestjs-firebase/src/firebase.module.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ import {
FirebaseModuleOptionsFactory,
} from "./firebase.interface";
import { FirebaseModule } from "./firebase.module";
import * as utils from "./util";

jest.mock("./util");
jest.spyOn(utils, "getFirebaseAdmin").mockReturnValue({} as any);
import * as admin from "firebase-admin";
import * as path from "path";
import { mock } from "jest-mock-extended";

describe("FirebaseModule", () => {
const googleApplicationCredential = "test";
jest.spyOn(admin, "initializeApp").mockReturnValue(mock<admin.app.App>());

const googleApplicationCredential = path.join(
__dirname,
"../../../dummy.firebase.amin.key.json",
);
class TestService implements FirebaseModuleOptionsFactory {
createFirebaseModuleOptions(): FirebaseModuleOptions {
return {
Expand Down
22 changes: 2 additions & 20 deletions packages/nestjs-firebase/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./lib",
"removeComments": true,
"sourceMap": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": false,
"target": "ES2017"
"noEmit": false
},
"exclude": ["node_modules", "**/*.spec.ts", "dist"],
"include": ["src"]
Expand Down
22 changes: 2 additions & 20 deletions packages/nestjs-graphql-relay/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./lib",
"removeComments": true,
"sourceMap": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": false,
"target": "ES2017"
"noEmit": false
},
"exclude": ["node_modules", "dist"],
"include": ["src"]
Expand Down
22 changes: 2 additions & 20 deletions packages/nestjs-slack-webhook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./lib",
"removeComments": true,
"sourceMap": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": false,
"target": "ES2017"
"noEmit": false
},
"exclude": ["node_modules", "dist"],
"include": ["src"]
Expand Down
3 changes: 2 additions & 1 deletion packages/nestjs-zendesk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"compilerOptions": {
"outDir": "./lib",
"noEmit": false
}
},
"include": ["src"]
}

0 comments on commit 913518d

Please sign in to comment.