[READ-ONLY] a fast, modern browser for the npm registry

ci: split ci tests (#871)

authored by

Marcus Blättermann and committed by
GitHub
f8a66e08 f5a7c146

+63 -15
+2 -1
.github/workflows/autofix.yml
··· 14 14 15 15 jobs: 16 16 code: 17 + name: 🤖 Autofix code 17 18 runs-on: ubuntu-latest 18 19 19 20 steps: ··· 24 25 node-version: lts/* 25 26 26 27 - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 27 - name: Install pnpm 28 + name: 🟧 Install pnpm 28 29 with: 29 30 cache: true 30 31
+57 -11
.github/workflows/ci.yml
··· 21 21 22 22 jobs: 23 23 lint: 24 + name: 🔠 Lint project 24 25 runs-on: ubuntu-latest 25 26 26 27 steps: ··· 31 32 node-version: lts/* 32 33 33 34 - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 34 - name: Install pnpm 35 + name: 🟧 Install pnpm 35 36 # pnpm cache skipped deliberately as the project is not actually installed here 36 37 37 38 - name: 🔠 Lint project 38 39 run: node scripts/lint.ts 39 40 41 + types: 42 + name: 💪 Type check 43 + runs-on: ubuntu-latest 44 + 45 + steps: 46 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 47 + 48 + - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 49 + with: 50 + node-version: lts/* 51 + 52 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 53 + name: 🟧 Install pnpm 54 + with: 55 + cache: true 56 + 57 + - name: 📦 Install dependencies 58 + run: pnpm install 59 + 60 + - name: 💪 Type check 61 + run: pnpm test:types 62 + 63 + unit: 64 + name: 🧪 Unit tests 65 + runs-on: ubuntu-latest 66 + 67 + steps: 68 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 69 + 70 + - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 71 + with: 72 + node-version: lts/* 73 + 74 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 75 + name: 🟧 Install pnpm 76 + with: 77 + cache: true 78 + 79 + - name: 📦 Install dependencies 80 + run: pnpm install 81 + 82 + - name: 🧪 Unit tests 83 + run: pnpm test:unit --project unit run --coverage 84 + 40 85 test: 86 + name: 🧪 Component tests 41 87 runs-on: ubuntu-latest 42 88 43 89 steps: ··· 48 94 node-version: lts/* 49 95 50 96 - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 51 - name: Install pnpm 97 + name: 🟧 Install pnpm 52 98 with: 53 99 cache: true 54 100 ··· 58 104 - name: 🌐 Install browser 59 105 run: pnpm playwright install chromium-headless-shell 60 106 61 - - name: 💪 Type check 62 - run: pnpm test:types 63 - 64 - - name: 🧪 Unit and component tests 65 - run: pnpm vite test run --coverage 107 + - name: 🧪 Component tests 108 + run: pnpm vite test --project nuxt run --coverage 66 109 67 110 - name: Upload coverage reports to Codecov 68 111 uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5 ··· 70 113 CODECOV_TOKEN: 17b4bed9-d407-4ce2-9c10-2ccd4328a1d9 71 114 72 115 browser: 116 + name: 🖥️ Browser tests 73 117 runs-on: ubuntu-latest 74 118 container: 75 119 image: mcr.microsoft.com/playwright:v1.58.0-noble ··· 82 126 node-version: lts/* 83 127 84 128 - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 85 - name: Install pnpm 129 + name: 🟧 Install pnpm 86 130 with: 87 131 cache: true 88 132 ··· 96 140 run: pnpm test:browser:prebuilt 97 141 98 142 a11y: 143 + name: ♿ Accessibility audit 99 144 runs-on: ubuntu-latest 100 145 strategy: 101 146 matrix: ··· 109 154 node-version: lts/* 110 155 111 156 - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 112 - name: Install pnpm 157 + name: 🟧 Install pnpm 113 158 with: 114 159 cache: true 115 160 ··· 126 171 LIGHTHOUSE_COLOR_MODE: ${{ matrix.mode }} 127 172 128 173 knip: 174 + name: 🧹 Unused code check 129 175 runs-on: ubuntu-latest 130 176 131 177 steps: ··· 136 182 node-version: lts/* 137 183 138 184 - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 139 - name: Install pnpm 185 + name: 🟧 Install pnpm 140 186 with: 141 187 cache: true 142 188 143 189 - name: 📦 Install dependencies 144 190 run: pnpm install 145 191 146 - - name: 🔍 Check for unused code 192 + - name: 🧹 Check for unused code 147 193 run: pnpm knip
+2 -2
.github/workflows/lunaria.yml
··· 17 17 18 18 jobs: 19 19 lunaria-overview: 20 - name: Generate Lunaria Overview 20 + name: 🌝 Generate Lunaria Overview 21 21 runs-on: ubuntu-latest 22 22 23 23 steps: ··· 33 33 node-version: lts/* 34 34 35 35 - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 36 - name: Install pnpm 36 + name: 🟧 Install pnpm 37 37 with: 38 38 cache: true 39 39
+1
.github/workflows/provenance.yml
··· 20 20 21 21 jobs: 22 22 check-provenance: 23 + name: 🔒 Check provenance downgrades 23 24 runs-on: ubuntu-slim 24 25 steps: 25 26 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+1 -1
.github/workflows/semantic-pull-requests.yml
··· 17 17 statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR 18 18 if: github.repository == 'npmx-dev/npmx.dev' 19 19 runs-on: ubuntu-slim 20 - name: semantic-pr 20 + name: 🏷️ Validate PR title 21 21 steps: 22 22 - name: Validate PR title 23 23 uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1