Skip to content

Commit

Permalink
Merge pull request #32 from CrowdStrike/type-checking
Browse files Browse the repository at this point in the history
chore(ci): add type checking
  • Loading branch information
NullVoxPopuli authored May 26, 2021
2 parents b5cd671 + 0c0ad08 commit 45a7103
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ env:
CI: true

jobs:
type_checking:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Check Types
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1

- run: yarn install --frozen-lockfile
- run: yarn prepack


tests:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Base Tests
Expand Down Expand Up @@ -61,7 +74,7 @@ jobs:
name: "Compatibility"
timeout-minutes: 7
runs-on: ubuntu-latest
needs: tests
needs: [ tests, type_checking ]

strategy:
fail-fast: true
Expand Down
2 changes: 1 addition & 1 deletion addon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type TransitionWithPrivateAPIs = Transition & {
};
};

export function withHashSupport(AppRouter: typeof EmberRouter) {
export function withHashSupport(AppRouter: typeof EmberRouter): typeof AppRouter {
return class RouterWithHashSupport extends AppRouter {
constructor(...args: RouterArgs) {
super(...args);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 45a7103

Please sign in to comment.