diff --git a/.github/workflows/lighthouse-report.yaml b/.github/workflows/lighthouse-report.yaml index fffce69..c961f09 100644 --- a/.github/workflows/lighthouse-report.yaml +++ b/.github/workflows/lighthouse-report.yaml @@ -21,6 +21,9 @@ jobs: env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18] steps: - name: Sticky Comment on Pull Request uses: marocchino/sticky-pull-request-comment@v2.6.2 @@ -31,13 +34,19 @@ jobs: ![Loading](https://github.com/bartvdbraak/omnidash/assets/3996360/8e85bc78-53ac-41de-bdb6-bedfe8c6d8c1) - - name: Check out + - name: Checkout Git repository uses: actions/checkout@v3.5.3 - - name: Set up Node.js + - name: Setup pnpm + uses: pnpm/action-setup@v2.2.4 + with: + version: 8.6.2 + + - name: Setup Node.js uses: actions/setup-node@v3.6.0 with: - node-version: 18 + node-version: ${{ matrix.node-version }} + cache: pnpm - name: Install Dependencies run: pnpm add -g @unlighthouse/cli puppeteer diff --git a/.github/workflows/lint-deps-check.yaml b/.github/workflows/lint-deps-check.yaml index 6ef5183..c214b94 100644 --- a/.github/workflows/lint-deps-check.yaml +++ b/.github/workflows/lint-deps-check.yaml @@ -16,15 +16,23 @@ jobs: run-checks: name: Run checks runs-on: ubuntu-latest - + strategy: + matrix: + node-version: [18, 20] steps: - - name: Check out Git repository + - name: Checkout Git repository uses: actions/checkout@v3.5.3 - - name: Set up Node.js + - name: Setup pnpm + uses: pnpm/action-setup@v2.2.4 + with: + version: 8.6.2 + + - name: Setup Node.js uses: actions/setup-node@v3.6.0 with: - node-version: 18 + node-version: ${{ matrix.node-version }} + cache: pnpm - name: Install Node.js dependencies run: pnpm install --frozen-lockfile