From 92d0770fa7a3360918313d2e3ccab7f4c66943f9 Mon Sep 17 00:00:00 2001 From: Chris Bateman Date: Sun, 18 Feb 2024 01:39:57 +0000 Subject: [PATCH] Update Github actions + node matrix --- .github/workflows/danger.yml | 2 +- .github/workflows/test.yml | 48 ++++++++++++++++++++++-------------- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 232db269ab..efdf9bbe44 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # create a new branch called pr from the remote PR branch diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70bcdd0a03..7fa1b8b8a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,12 +16,12 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [14.x, 16.x, 18.x, 20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm ci @@ -33,12 +33,12 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [14.x, 16.x, 18.x, 20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm ci @@ -48,12 +48,16 @@ jobs: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x, 18.x, 20.x] + steps: - - uses: actions/checkout@v3 - - name: Use Node.js 14.x - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 14.x + node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run lint:ci @@ -61,12 +65,16 @@ jobs: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x, 18.x, 20.x] + steps: - - uses: actions/checkout@v3 - - name: Use Node.js 14.x - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 14.x + node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run tsc @@ -74,11 +82,15 @@ jobs: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x, 18.x, 20.x] + steps: - - uses: actions/checkout@v3 - - name: Use Node.js 14.x - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 14.x + node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run regex-coverage