Skip to content

Commit

Permalink
Merge pull request #39 from mashabow/ts-github-actions
Browse files Browse the repository at this point in the history
GitHub Actions 上で型検査する
  • Loading branch information
mashabow authored Sep 24, 2021
2 parents 69cac77 + fd51a1f commit 9ce5a78
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 211 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
node-version: "14.x"
- run: npm ci
- run: npm run lint:ci
- name: Type check
uses: gozala/[email protected]
with:
project: functions/tsconfig.json
- name: Create serviceAccountKey.json for online testing
run: echo "$SERVICE_ACCOUNT_KEY_JSON" > ../serviceAccountKey.json
env:
Expand Down
208 changes: 0 additions & 208 deletions functions/package-lock.json

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

2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"logs": "firebase functions:log",
"lint": "eslint --format codeframe --ext .js,.jsx,.ts,.tsx .",
"lint:ci": "npm run lint -- --max-warnings=0",
"type": "tsc --noEmit",
"test": "jest",
"test:ci": "npm run test -- --ci"
},
Expand All @@ -26,7 +27,6 @@
},
"devDependencies": {
"@slack-wrench/jest-mock-web-client": "^1.2.0",
"@types/jest": "^26.0.9",
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^3.8.0",
Expand Down
10 changes: 9 additions & 1 deletion functions/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { describe, it, expect } from "@jest/globals";
import {
afterAll,
beforeEach,
afterEach,
describe,
it,
expect,
jest,
} from "@jest/globals";
import {
MockedWebClient,
MockWebClient,
Expand Down
2 changes: 1 addition & 1 deletion functions/src/model/__tests__/rotation.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, it, expect } from "@jest/globals";
import { describe, it, expect, jest } from "@jest/globals";
import { Rotation } from "../rotation";

describe("Rotation", () => {
Expand Down

0 comments on commit 9ce5a78

Please sign in to comment.