Skip to content

Commit

Permalink
Use default Node version in CI
Browse files Browse the repository at this point in the history
Deprecated Node versions are used in CI, potentially causing security and reliability issues. Instead, it's better to use GitHub's default Node version, which also doesn't require additional downloads or installations.
  • Loading branch information
nickserv committed Sep 13, 2023
1 parent b2a85ee commit 3196af5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build-and-test-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ on:

jobs:
build:
name: Lint, Test, Report Coverage on Node ${{ matrix.node }}
name: Lint, Test, Report Coverage on Node
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16.x']

steps:
- name: Checkout code
Expand All @@ -21,7 +18,6 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'yarn'

- name: Install dependencies
Expand Down Expand Up @@ -56,16 +52,14 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['16.x']
ts: ['4.2', '4.3', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5.0']
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use node ${{ matrix.node }}
- name: Use node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'

- name: Install deps
Expand Down Expand Up @@ -102,7 +96,6 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['16.x']
example:
[
'cra4',
Expand All @@ -117,10 +110,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use node ${{ matrix.node }}
- name: Use node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'

- name: Clone RTK repo
Expand Down

0 comments on commit 3196af5

Please sign in to comment.