From 317bff02d02dac12fa6d56dc5e9924c8ce76db13 Mon Sep 17 00:00:00 2001 From: incognitotgt Date: Wed, 31 Jan 2024 23:51:57 -0500 Subject: [PATCH] fix: ci hopefully works --- .github/workflows/ci.yaml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 57196ff..42a8f47 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,18 +1,25 @@ -name: CI -on: [push] +name: Lighthouse CI +on: + push: jobs: - lighthouseci: + build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18] steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'pnpm' - uses: pnpm/action-setup@v2 - with: + with: version: 8 - - run: pnpm install - - run: npm install -g pnpm && pnpm setup && pnpm install && pnpm install -g @lhci/cli@0.13.x - - run: pnpm run build - - run: lhci autorun + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + - name: Install dependencies + run: pnpm install && pnpm install -g @lhci/cli@0.13.x + - name: Run build + run: pnpm run build + - name: Run Lighthouse CI + run: lhci autorun