Skip to content

Commit

Permalink
Run FE workflow using bun
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjaglumac committed Feb 23, 2024
1 parent 0ee4536 commit 0ab0f6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/actions/prepare-frontend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ runs:
using: "composite"
steps:
- name: Prepare Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
uses: oven-sh/setup-bun@v1
- name: Check to see if dependencies should be cached
if: ${{ contains(github.event.head_commit.message, '[ci nocache]') }}
run: |
Expand All @@ -24,5 +22,5 @@ runs:
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile --prefer-offline
- run: bun install
shell: bash
16 changes: 8 additions & 8 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
with:
m2-cache-key: "cljs"
- name: Compile CLJS
run: yarn build-pure:cljs
run: bun build-pure:cljs
- name: Run Prettier formatting linter
run: yarn run lint-prettier-pure
run: bun run lint-prettier-pure
- name: Run ESLint linter
run: yarn run lint-eslint-pure
run: bun run lint-eslint-pure

fe-type-check:
needs: files-changed
Expand All @@ -62,9 +62,9 @@ jobs:
uses: ./.github/actions/prepare-backend
with:
m2-cache-key: "cljs"
- run: yarn build-pure:cljs
- run: bun build-pure:cljs
name: Compile CLJS
- run: yarn type-check-pure
- run: bun type-check-pure
name: Check types

fe-tests-unit:
Expand All @@ -85,10 +85,10 @@ jobs:
m2-cache-key: "cljs"
- name: Run frontend unit tests and collect the code coverage information
if: github.ref_name == 'master'
run: yarn run test-unit --coverage --silent
run: bun run test-unit --coverage --silent
- name: Run frontend unit tests
if: github.ref_name != 'master'
run: yarn run test-unit --silent
run: bun run test-unit --silent
- name: Upload coverage to codecov.io
if: github.ref_name == 'master'
uses: codecov/codecov-action@v3
Expand Down Expand Up @@ -121,4 +121,4 @@ jobs:
with:
m2-cache-key: "cljs"
- name: Run frontend timezones tests
run: yarn run test-timezones
run: bun run test-timezones

0 comments on commit 0ab0f6c

Please sign in to comment.