Skip to content

Commit 9d42ac1

Browse files
authored
chore: use 4 core windows runner for github actions (#1106)
* chore: use 4 core windows runner for github actions * revert cache actions upgrade * Update health_checks.yml * lint
1 parent ab05ae0 commit 9d42ac1

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/actions/install_with_cache/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010
path: |
1111
node_modules
1212
packages/**/node_modules
13-
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
13+
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}-v2
1414
# only install if cache miss
1515
- if: steps.npm-cache.outputs.cache-hit != 'true'
1616
shell: bash

.github/workflows/health_checks.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
# Windows install must happen on the same worker size as subsequent jobs.
1717
# Larger workers use different drive (C: instead of D:) to check out project and NPM installation
1818
# creates file system links that include drive letter.
19-
os: [ubuntu-latest, macos-latest, amplify-backend_windows-latest_8-core]
19+
# Changing between standard and custom workers requires full install cache invalidation
20+
os: [ubuntu-latest, macos-latest, windows-latest]
2021
runs-on: ${{ matrix.os }}
2122
steps:
2223
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # version 3.6.0
@@ -35,7 +36,7 @@ jobs:
3536
- build
3637
strategy:
3738
matrix:
38-
os: [ubuntu-latest, macos-latest, amplify-backend_windows-latest_8-core]
39+
os: [ubuntu-latest, macos-latest, windows-latest]
3940
runs-on: ${{ matrix.os }}
4041
steps:
4142
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # version 3.6.0
@@ -131,12 +132,7 @@ jobs:
131132
# will finish running other test matrices even if one fails
132133
fail-fast: false
133134
matrix:
134-
os:
135-
[
136-
ubuntu-latest,
137-
macos-latest-xl,
138-
amplify-backend_windows-latest_8-core,
139-
]
135+
os: [ubuntu-latest, macos-latest-xl, windows-latest]
140136
runs-on: ${{ matrix.os }}
141137
timeout-minutes: 25
142138
needs:
@@ -170,7 +166,7 @@ jobs:
170166
# will finish running other test matrices even if one fails
171167
fail-fast: false
172168
matrix:
173-
os: [ubuntu-latest, macos-latest, amplify-backend_windows-latest_8-core]
169+
os: [ubuntu-latest, macos-latest, windows-latest]
174170
pkg-manager: [npm, yarn-classic, yarn-modern, pnpm]
175171
node-version: [20]
176172
env:

0 commit comments

Comments
 (0)