Remove node version from matrix

This commit is contained in:
Sidharth Vinod 2024-01-29 16:44:44 +05:30
parent 52bb31b98a
commit dd553cb28f
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
4 changed files with 18 additions and 18 deletions

View File

@ -12,23 +12,23 @@ on:
permissions:
contents: read
env:
node-version: 20.x
jobs:
build-mermaid:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
# uses version from "packageManager" field in package.json
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js ${{ env.node-version }}
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
node-version: ${{ env.node-version }}
- name: Install Packages
run: |

View File

@ -17,6 +17,7 @@ permissions:
contents: read
env:
node-version: 20.x
# For PRs and MergeQueues, the target commit is used, and for push events, github.event.previous is used.
targetHash: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha || (github.event.before == '0000000000000000000000000000000000000000' && 'develop' || github.event.before) }}
@ -60,7 +61,6 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [20.x]
containers: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v4
@ -68,10 +68,10 @@ jobs:
- uses: pnpm/action-setup@v2
# uses version from "packageManager" field in package.json
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js ${{ env.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ env.node-version }}
# These cached snapshots are downloaded, providing the reference snapshots.
- name: Cache snapshots

View File

@ -13,23 +13,23 @@ on:
permissions:
contents: write
env:
node-version: 20.x
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
# uses version from "packageManager" field in package.json
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js ${{ env.node-version }}
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
node-version: ${{ env.node-version }}
- name: Install Packages
run: |

View File

@ -5,23 +5,23 @@ on: [push, pull_request, merge_group]
permissions:
contents: read
env:
node-version: 20.x
jobs:
unit-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
# uses version from "packageManager" field in package.json
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js ${{ env.node-version }}
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
node-version: ${{ env.node-version }}
- name: Install Packages
run: |