ci: make ci faster by not installing chrome (#865)

* ci: apparently ubuntu-latest has chrome preinstalled

* ci: refactor and prefer offline cached deps
This commit is contained in:
YashRaj 2026-03-03 23:23:56 +05:30 • committed by GitHub
parent 281aedcf1f
commit 5fe5bd62a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,12 +28,8 @@ jobs:
steps:
- uses: actions/checkout@v4
if: ${{ github.event_name == 'schedule' }}
with:
ref: dev
- uses: actions/checkout@v4
if: ${{ github.event_name == 'workflow_dispatch' }}
ref: ${{ github.event_name == 'schedule' && 'dev' || github.ref }}
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json
@ -45,13 +41,7 @@ jobs:
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
- name: Install Google Chrome
id: setup-chrome
uses: browser-actions/setup-chrome@82b9ce628cc5595478a9ebadc480958a36457dc2
with:
chrome-version: stable
pnpm install --frozen-lockfile --prefer-offline
- name: Build Equicord Reporter Version
run: pnpm buildReporter
@ -60,7 +50,7 @@ jobs:
timeout-minutes: 10
run: |
export PATH="$PWD/node_modules/.bin:$PATH"
export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-path }}
export CHROMIUM_BIN=/usr/bin/google-chrome
esbuild scripts/generateReport.ts > dist/report.mjs