-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add unit test check guideline-blocks-settings (#690)
* ci: add unit test check
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|