Skip to content

Commit

Permalink
ci: add unit test check guideline-blocks-settings (#690)
Browse files Browse the repository at this point in the history
* ci: add unit test check
  • Loading branch information
ragi96 authored Jan 16, 2024
1 parent 3fa74ba commit 03d9946
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/guideline-blocks-continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,47 @@ jobs:
- name: Lint code
run: pnpm --stream --filter {packages/guideline-blocks-settings} lint

unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout current commit
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Use pnpm
uses: pnpm/[email protected]
with:
version: latest
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: |
${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
~/.cache/Cypress
key: pnpm-with-cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: pnpm-with-cypress-${{ runner.os }}-

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build local dependencies
run: pnpm build:app-bridge && pnpm build:sidebar-settings

- name: Unit Tests
run: pnpm --stream --filter {packages/guideline-blocks-settings} test

component-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down

0 comments on commit 03d9946

Please sign in to comment.