mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-26 23:11:21 +00:00
fix: Setup pnpm
as package manager in workflows
This commit is contained in:
parent
885a5f8d99
commit
043c639aa1
2 changed files with 24 additions and 7 deletions
15
.github/workflows/lighthouse-report.yaml
vendored
15
.github/workflows/lighthouse-report.yaml
vendored
|
@ -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:
|
|||
|
||||

|
||||
|
||||
- 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
|
||||
|
|
16
.github/workflows/lint-deps-check.yaml
vendored
16
.github/workflows/lint-deps-check.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue