diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ded183f66..dc1a7b433 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,12 @@ jobs: + are_the_types_wrong: + name: Are the types wrong? + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/prepare + - run: pnpm build + - run: npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm build: name: Build runs-on: ubuntu-latest diff --git a/script/__snapshots__/migrate-test-e2e.ts.snap b/script/__snapshots__/migrate-test-e2e.ts.snap index 0d3be3139..c633fd135 100644 --- a/script/__snapshots__/migrate-test-e2e.ts.snap +++ b/script/__snapshots__/migrate-test-e2e.ts.snap @@ -3,6 +3,19 @@ exports[`expected file changes > .github/workflows/ci.yml 1`] = ` "--- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml +@@ ... @@ + jobs: +- are_the_types_wrong: +- name: Are the types wrong? +- runs-on: ubuntu-latest +- steps: +- - uses: actions/checkout@v4 +- - uses: ./.github/actions/prepare +- - run: pnpm build +- - run: npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm + build: + name: Build + runs-on: ubuntu-latest @@ ... @@ jobs: - uses: ./.github/actions/prepare - run: pnpm run test --coverage