Skip to content

Commit

Permalink
ci: bun install, x (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 authored Sep 21, 2023
1 parent 95dab37 commit 6c765e0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 24 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@ jobs:
- name: "☁️ checkout repository"
uses: actions/checkout@v2

- name: "🔧 setup node"
uses: actions/setup-node@v2.1.5
with:
node-version: 18

- name: "🔧 install npm@latest"
run: npm i -g npm@latest
- name: "🔧 setup Bun"
uses: oven-sh/setup-bun@v1

- name: "📦 install dependencies"
uses: bahmutov/npm-install@v1
run: bun install

- name: "📦 run build"
run: npm run build
run: bun run build
11 changes: 5 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: "🔧 setup Bun"
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: npm ci
run: bun install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
run: bun x playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
run: bun x playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,14 @@ jobs:
- name: "☁️ checkout repository"
uses: actions/checkout@v3

- name: "🔧 setup node"
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: "🔧 install npm@latest"
run: npm i -g npm@latest
- name: "🔧 setup Bun"
uses: oven-sh/setup-bun@v1

- name: "📦 install dependencies"
uses: bahmutov/npm-install@v1
run: bun install

- name: "🚀 static app"
run: npm run build
run: bun run build

- name: "📂 production artifacts"
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 6c765e0

Please sign in to comment.