diff --git a/.eslintrc.js b/.eslintrc.js index a0b787261f5..21c91813c8b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -107,15 +107,6 @@ module.exports = { }, }, - // mirage files - { - files: ['mirage/**/*.js'], - rules: { - // disabled because of different `.find()` meaning - 'unicorn/no-array-callback-reference': 'off', - }, - }, - // node files { files: [ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef84af32f57..0d01ffe560f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: files_ignore: | app/** e2e/** - mirage/** + packages/** public/** tests/** .eslintrc @@ -239,6 +239,30 @@ jobs: - if: github.repository != 'rust-lang/crates.io' run: pnpm test-coverage + msw-test: + name: Frontend / Test (@crates-io/msw) + runs-on: ubuntu-24.04 + needs: [changed-files] + if: needs.changed-files.outputs.non-rust == 'true' + + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + + - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 + with: + version: ${{ env.PNPM_VERSION }} + + - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 + with: + cache: pnpm + node-version-file: package.json + + - run: pnpm install + + - run: pnpm --filter "@crates-io/msw" test + e2e-test: name: Frontend / Test (playwright) runs-on: ubuntu-24.04 diff --git a/.gitignore b/.gitignore index 46551a152e3..48a11c3ba54 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ /tmp # dependencies -/node_modules +node_modules/ /bower_components package-lock.json yarn.lock diff --git a/app/templates/dashboard.hbs b/app/templates/dashboard.hbs index 9a9dc67f5b2..7bce9c57399 100644 --- a/app/templates/dashboard.hbs +++ b/app/templates/dashboard.hbs @@ -45,7 +45,7 @@
-