Skip to content

Commit

Permalink
github: ci: Move from yarn to bun
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Sep 15, 2023
1 parent b78f93d commit e8419fa
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ jobs:

- name: Install dependencies
run: |
sudo apt install -y xvfb yarn
sudo apt install -y xvfb
- name: Run yarn
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Run bun
run: |
yarn install --frozen-lockfile --network-timeout 300000
yarn lint
yarn typecheck
yarn build
xvfb-run --auto-servernum yarn test:ci
bun install --frozen-lockfile
bun run lint
bun run typecheck
bun run build
xvfb-run --auto-servernum bun test:ci
deploy-electron:
needs: test
Expand All @@ -44,27 +48,21 @@ jobs:
suffix: linux
extension: AppImage

- os: windows-latest
suffix: windows
extension: exe
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

# Use node to install yarn in all OSs
- name: Install node
uses: actions/setup-node@v3
- uses: oven-sh/setup-bun@v1
with:
node-version: 16
bun-version: latest

- name: Build electron
run: |
npm install --global yarn
yarn install --frozen-lockfile --network-timeout 300000
yarn build
yarn deploy:electron
bun install --frozen-lockfile
bun run build
bun deploy:electron
- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit e8419fa

Please sign in to comment.