Skip to content

Commit

Permalink
actions maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
sdalonzo committed Jan 24, 2024
1 parent 8d857c5 commit 2b1c4f9
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 28 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/chromatic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@ jobs:
with:
fetch-depth: 0 # needed by chromatic for git history

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: PNPM cache via actions/cache@v3
id: pnpm-cache
uses: actions/cache@v3
- name: Cache Rush
uses: actions/cache@v4
with:
path: /home/runner/work/design-system/design-system/common/temp/pnpm-store/v3
path: |
common/temp/install-run
~/.rush
key: ${{ runner.os }}-rush-${{ hashFiles('rush.json') }}

- name: Cache PNPM
uses: actions/cache@v4
with:
path: common/temp/pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
restore-keys: ${{ runner.os }}-pnpm-

- name: Install dependencies
run: node common/scripts/install-run-rush.js install
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,32 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: PNPM cache via actions/cache@v3
id: pnpm-cache
uses: actions/cache@v3
- name: Cache Rush
uses: actions/cache@v4
with:
path: /home/runner/work/design-system/design-system/common/temp/pnpm-store/v3
path: |
common/temp/install-run
~/.rush
key: ${{ runner.os }}-rush-${{ hashFiles('rush.json') }}

- name: Cache PNPM
uses: actions/cache@v4
with:
path: common/temp/pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
restore-keys: ${{ runner.os }}-pnpm-

- name: Install dependencies
run: node common/scripts/install-run-rush.js install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
fetch-depth: 1
token: ${{ secrets.GH_PAT }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: PNPM cache via actions/cache@v3
id: pnpm-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
fetch-depth: 2
token: ${{ secrets.GH_PAT }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: PNPM cache via actions/cache@v3
id: pnpm-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/on-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: PNPM cache via actions/cache@v3
id: pnpm-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: PNPM cache via actions/cache@v3
id: pnpm-cache
Expand Down
6 changes: 3 additions & 3 deletions packages/core/config/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"extends": "@priceline/heft-component-rig/profiles/react/config/jest.config.json",
"coverageThreshold": {
"global": {
"statements": 96,
"branches": 95,
"statements": 94,
"branches": 89,
"functions": 89,
"lines": 96
"lines": 94
}
}
}
2 changes: 1 addition & 1 deletion rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Specify a SemVer range to ensure developers use a Node.js version that is appropriate
* for your repo.
*/
"nodeSupportedVersionRange": ">=16",
"nodeSupportedVersionRange": ">=18",

/**
* Odd-numbered major versions of Node.js are experimental. Even-numbered releases
Expand Down

0 comments on commit 2b1c4f9

Please sign in to comment.