Skip to content

Commit 8fa9bbb

Browse files
committed
bunned
1 parent 0339c8a commit 8fa9bbb

File tree

7 files changed

+1519
-8206
lines changed

7 files changed

+1519
-8206
lines changed

.github/workflows/CD.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
node-version: [20.x]
15+
bun-version: [1.2.15]
1616
steps:
1717
- name: Install Native Dependencies
1818
run: |
@@ -35,34 +35,25 @@ jobs:
3535
echo "deploy_tag=FAILED" >> $GITHUB_OUTPUT
3636
fi
3737
38-
- name: Restore Yarn cache
39-
uses: actions/cache@v4
38+
- name: Use Bun ${{ matrix.bun-version }}
39+
uses: oven-sh/setup-bun@v2
4040
with:
41-
path: .yarn/cache
42-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
41+
bun-version: ${{ matrix.bun-version }}
4342

44-
- name: Use Node.js ${{ matrix.node-version }}
45-
uses: actions/setup-node@v4
46-
with:
47-
node-version: ${{ matrix.node-version }}
48-
49-
- name: Setup Yarn
50-
run: corepack enable
51-
52-
- name: Install Yarn Dependencies
53-
run: yarn install --immutable
43+
- name: Install Dependencies
44+
run: bun install --frozen-lockfile
5445

5546
- name: Compile
5647
if: steps.get-tag.outputs.deploy_tag != 'FAILED'
57-
run: yarn run build --env GITHUB_CD --env GITHUB_SHA=$GITHUB_SHA --env GITHUB_TAG="${{ steps.get-tag.outputs.deploy_tag }}"
48+
run: bun run build --env GITHUB_CD --env GITHUB_SHA=$GITHUB_SHA --env GITHUB_TAG="${{ steps.get-tag.outputs.deploy_tag }}"
5849

5950
- name: Compile (no tag)
6051
if: steps.get-tag.outputs.deploy_tag == 'FAILED'
6152
run: yarn run build --env GITHUB_CD --env GITHUB_SHA=$GITHUB_SHA
6253

6354
#Safety against pushing broken code
6455
- name: Run ESLint
65-
run: yarn eslint "**/*.{js,jsx,ts,tsx}"
56+
run: bun eslint "**/*.{js,jsx,ts,tsx}"
6657

6758
- name: Create workdir
6859
run: |

.github/workflows/CI.yml

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
node-version: [20.x]
19+
bun-version: [1.2.15]
2020
steps:
2121
# expect used for unbuffer
2222
- name: Install Native Dependencies
@@ -27,27 +27,13 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@v4
2929

30-
- name: Restore Yarn cache
31-
uses: actions/cache@v4
30+
- name: Use Bun ${{ matrix.bun-version }}
31+
uses: oven-sh/setup-bun@v2
3232
with:
33-
path: .yarn/cache
34-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
33+
bun-version: ${{ matrix.bun-version }}
3534

36-
- name: Use Node.js ${{ matrix.node-version }}
37-
uses: actions/setup-node@v4
38-
with:
39-
node-version: ${{ matrix.node-version }}
40-
41-
- name: Setup Yarn
42-
run: corepack enable
43-
44-
- name: Install Yarn Dependencies
45-
run: |
46-
unbuffer yarn install --immutable | tee yarn_output.log
47-
if cat yarn_output.log | grep YN0060; then
48-
echo "Detected incompatible peer dependencies!"
49-
exit 1
50-
fi
35+
- name: Install Dependencies
36+
run: bun install --frozen-lockfile
5137

5238
- name: Compile
5339
run: |
@@ -62,30 +48,21 @@ jobs:
6248
runs-on: ubuntu-latest
6349
strategy:
6450
matrix:
65-
node-version: [20.x]
51+
bun-version: [1.2.15]
6652
steps:
6753
- name: Checkout
6854
uses: actions/checkout@v4
6955

70-
- name: Restore Yarn cache
71-
uses: actions/cache@v4
56+
- name: Use Bun ${{ matrix.bun-version }}
57+
uses: oven-sh/setup-bun@v2
7258
with:
73-
path: .yarn/cache
74-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
75-
76-
- name: Use Node.js ${{ matrix.node-version }}
77-
uses: actions/setup-node@v4
78-
with:
79-
node-version: ${{ matrix.node-version }}
80-
81-
- name: Setup Yarn
82-
run: corepack enable
59+
bun-version: ${{ matrix.bun-version }}
8360

8461
- name: Install Dependencies
85-
run: yarn
62+
run: bun install --frozen-lockfile
8663

8764
- name: Run ESLint
88-
run: yarn eslint "**/*.{js,jsx,ts,tsx}"
65+
run: bun eslint "**/*.{js,jsx,ts,tsx}"
8966

9067
- name: Run Prettier
91-
run: yarn prettier -c .
68+
run: bun prettier -c .

.github/workflows/chromatic.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
node-version: [20.x]
21+
bun-version: [1.2.15]
2222
steps:
2323
- name: Checkout
2424
if: github.event_name == 'push'
@@ -33,25 +33,16 @@ jobs:
3333
fetch-depth: 0
3434
ref: refs/pull/${{ inputs.pull_request_number }}/head
3535

36-
- name: Restore Yarn cache
37-
uses: actions/cache@v4
36+
- name: Use Bun ${{ matrix.bun-version }}
37+
uses: oven-sh/setup-bun@v2
3838
with:
39-
path: .yarn/cache
40-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
41-
42-
- name: Use Node.js ${{ matrix.node-version }}
43-
uses: actions/setup-node@v4
44-
with:
45-
node-version: ${{ matrix.node-version }}
46-
47-
- name: Setup Yarn
48-
run: corepack enable
39+
bun-version: ${{ matrix.bun-version }}
4940

5041
- name: Install Dependencies
51-
run: yarn install --immutable
42+
run: bun install --frozen-lockfile
5243

5344
- name: Run Relay
54-
run: yarn relay-build
45+
run: bun run relay-build
5546

5647
- name: Run Chromatic
5748
uses: chromaui/action@latest

.yarnrc.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)