diff --git a/.github/workflows/auto-deprecate.yml b/.github/workflows/auto-deprecate.yml index 947d9281..5304a8a8 100644 --- a/.github/workflows/auto-deprecate.yml +++ b/.github/workflows/auto-deprecate.yml @@ -8,6 +8,7 @@ jobs: auto-deprecate: name: NPM Auto Deprecate runs-on: ubuntu-latest + if: github.repository_owner == 'sapphiredev' steps: - name: Checkout Project uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index 7510d40b..d85b1898 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -22,6 +22,7 @@ jobs: Publish: name: Publish Next to npm runs-on: ubuntu-latest + if: github.repository_owner == 'sapphiredev' steps: - name: Checkout Project uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 03fc55f0..02a279f7 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -69,8 +69,8 @@ jobs: registry-url: https://registry.npmjs.org/ - name: Install Dependencies run: yarn --immutable - - name: Build Code - run: yarn build + - name: Typecheck And Build Code + run: yarn typecheck && yarn build Upload_Coverage_Report: name: Upload coverage report to codecov diff --git a/.github/workflows/labelsync.yml b/.github/workflows/labelsync.yml index e0eb10d6..94e40f1d 100644 --- a/.github/workflows/labelsync.yml +++ b/.github/workflows/labelsync.yml @@ -9,6 +9,7 @@ jobs: label_sync: name: Automatic Label Synchronization runs-on: ubuntu-latest + if: github.repository_owner == 'sapphiredev' steps: - name: Checkout Project uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 diff --git a/tests/lib/configs.test.ts b/tests/lib/configs.test.ts index 16f7b92b..942a376d 100644 --- a/tests/lib/configs.test.ts +++ b/tests/lib/configs.test.ts @@ -1,4 +1,4 @@ -import { s, setGlobalValidationEnabled } from '../../src'; +import { BaseValidator, s, setGlobalValidationEnabled } from '../../src'; describe('Validation enabled and disabled configurations', () => { const stringPredicate = s.string.lengthGreaterThan(5); @@ -11,7 +11,7 @@ describe('Validation enabled and disabled configurations', () => { const setPredicate = s.set(s.number); const tuplePredicate = s.tuple([s.string, s.number]); - const predicateAndValues = [ + const predicateAndValues: [string, BaseValidator, unknown][] = [ // ['string', stringPredicate, ''], ['array', arrayPredicate, []], @@ -20,7 +20,7 @@ describe('Validation enabled and disabled configurations', () => { ['record', recordPredicate, { one: 'one' }], ['set', setPredicate, new Set(['1'])], ['tuple', tuplePredicate, [0, 'zero']] - ] as const; + ]; describe('Global configurations', () => { beforeAll(() => { diff --git a/tsconfig.typecheck.json b/tsconfig.typecheck.json index 14115bee..933bd15c 100644 --- a/tsconfig.typecheck.json +++ b/tsconfig.typecheck.json @@ -1,8 +1,9 @@ { "extends": "./tsconfig.base.json", "compilerOptions": { - "rootDir": "./src", - "noEmit": true + "noEmit": true, + "lib": ["DOM", "ESNext"], + "types": ["vitest/globals"] }, - "include": ["src"] + "include": ["src", "tests"] }