Skip to content

Commit

Permalink
Stop using latest Node in CI (microsoft#59347)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Jul 18, 2024
1 parent b8af314 commit 1fd2c1f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
37 changes: 13 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
- windows-latest
- macos-14
node-version:
- '22'
- '22.4.x'
- '20'
- '18'
- '16'
- '14'
bundle:
- 'true'
include:
- node-version: '*'
- node-version: 'lts/*'
bundle: false
os: ubuntu-latest
exclude:
Expand Down Expand Up @@ -83,8 +83,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- name: Run tests with coverage
Expand All @@ -109,8 +108,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- name: Linter
Expand All @@ -123,8 +121,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- name: Unused exports
Expand All @@ -137,8 +134,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
Expand All @@ -158,8 +154,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- name: Installing browsers
Expand All @@ -175,8 +170,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- name: Build src
Expand All @@ -190,8 +184,7 @@ jobs:

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: |
npm --version
# corepack enable npm
Expand Down Expand Up @@ -239,8 +232,7 @@ jobs:

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: |
npm --version
# corepack enable npm
Expand Down Expand Up @@ -273,8 +265,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- name: Build scripts
Expand All @@ -290,8 +281,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- name: Build tsc
Expand All @@ -310,8 +300,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: npm ci

- name: Remove all baselines
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/update-package-lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ jobs:
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '*'
check-latest: true
node-version: 'lts/*'
- run: |
npm --version
# corepack enable npm
Expand Down

0 comments on commit 1fd2c1f

Please sign in to comment.