Skip to content

Commit

Permalink
chore: upgrade Bun to latest (#3882)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
dzhavat and github-actions[bot] authored Jan 15, 2025
1 parent 2b2b345 commit 5834557
Show file tree
Hide file tree
Showing 13 changed files with 20,314 additions and 60 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/detect-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ on:
render_c4model_views:
value: ${{ jobs.changes.outputs.render_c4model_views }}

env:
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26

jobs:
changes:
Expand Down Expand Up @@ -82,9 +79,9 @@ jobs:
run: git fetch --no-tags origin ${{ env.BASE_BRANCH }}

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/dh-ci-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ env:
APP_NAME: app-dh
IS_MAIN_BRANCH: ${{ github.ref == 'refs/heads/main' }}
IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26

jobs:
#
Expand All @@ -38,9 +36,9 @@ jobs:
- uses: actions/checkout@v4

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/dh-healthchecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# limitations under the License.
name: DH UI Frontend Healthchecks
env:
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26
# See https://github.com/cypress-io/cypress/issues/25357
ELECTRON_EXTRA_LAUNCH_ARGS: --disable-gpu
on:
Expand All @@ -32,9 +30,9 @@ jobs:
fetch-depth: 0

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/eo-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ env:
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
is-main-branch: ${{ github.ref == 'refs/heads/main' }}
is-pull-request: ${{ github.event_name == 'pull_request' }}
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26

# Nx Cloud
NX_BRANCH: ${{ github.event.number }}
Expand Down Expand Up @@ -57,9 +55,9 @@ jobs:
run: git fetch --no-tags origin $BASE_BRANCH

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand All @@ -84,9 +82,9 @@ jobs:
- uses: actions/checkout@v4

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
26 changes: 12 additions & 14 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ env:
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
is-main-branch: ${{ github.ref == 'refs/heads/main' }}
is-pull-request: ${{ github.event_name == 'pull_request' }}
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26

# Nx Cloud
NX_BRANCH: ${{ github.event.number }}
Expand Down Expand Up @@ -70,9 +68,9 @@ jobs:
uses: actions/checkout@v4

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down Expand Up @@ -108,9 +106,9 @@ jobs:
uses: actions/checkout@v4

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down Expand Up @@ -148,9 +146,9 @@ jobs:
run: git fetch --no-tags origin $BASE_BRANCH

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down Expand Up @@ -195,9 +193,9 @@ jobs:
uses: actions/checkout@v4

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down Expand Up @@ -245,9 +243,9 @@ jobs:
uses: actions/checkout@v4

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down Expand Up @@ -283,9 +281,9 @@ jobs:
uses: actions/checkout@v4

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/license-check-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ env:
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
is-main-branch: ${{ github.ref == 'refs/heads/main' }}
is-pull-request: ${{ github.event_name == 'pull_request' }}
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26

# Nx Cloud
NX_BRANCH: ${{ github.event.number }}
Expand All @@ -47,9 +45,9 @@ jobs:
ref: ${{ github.head_ref }}

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/production-dependencies-license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26

on:
pull_request:
branches:
Expand All @@ -29,9 +25,9 @@ jobs:
ref: ${{ github.head_ref }}

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Check if dependencies have changed
id: dependencies_have_changed
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/watt-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
# Design System Frontend
name: Watt CD

env:
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26

on:
push:
branches:
Expand Down Expand Up @@ -49,9 +45,9 @@ jobs:
fetch-depth: 0

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/watt-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ on:

env:
APP_NAME: designsystem
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26

jobs:
#
Expand All @@ -33,9 +31,9 @@ jobs:
- uses: actions/checkout@v4

- name: Bun setup
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
bun-version-file: package.json

- name: Install dependencies
run: bun install --frozen-lockfile
Expand Down
6 changes: 3 additions & 3 deletions .husky/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
. "$(dirname -- "$0")/_/husky.sh"
. "$(dirname -- "$0")/common.sh"

if git diff-tree -r --name-only --no-commit-id HEAD@{1} HEAD | grep --quiet "bun.lockb";
if git diff-tree -r --name-only --no-commit-id HEAD@{1} HEAD | grep --quiet "bun.lock";
then
echo " * changes detected in bun.lockb"
echo " * changes detected in bun.lock"
echo " * running bun install"
bun install
bun install --save-text-lockfile
exit 0
fi
Loading

0 comments on commit 5834557

Please sign in to comment.