-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
5 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 |
---|---|---|
|
@@ -54,6 +54,43 @@ jobs: | |
name: backend-coverage | ||
path: packages/backend/coverage | ||
|
||
common: | ||
name: Common package unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
||
- name: Set up Node.js lts | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- name: Change TimeZone | ||
uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Europe/Paris" | ||
|
||
- name: Set up Yarn cache | ||
uses: c-hive/gha-yarn-cache@v2 | ||
|
||
- name: Install common dependencies | ||
run: yarn workspaces focus @domifa/common | ||
|
||
- name: Build common dependencies | ||
run: yarn workspace @domifa/common build | ||
|
||
- name: Run common tests | ||
run: yarn workspace @domifa/common test --coverage --detectOpenHandles --forceExit | ||
|
||
- name: Archive code coverage | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: common-coverage | ||
path: packages/common/coverage | ||
|
||
frontend: | ||
name: Front-end unit tests | ||
runs-on: ubuntu-latest | ||
|
@@ -137,11 +174,6 @@ jobs: | |
with: | ||
node-version: "lts/*" | ||
|
||
- name: Change TimeZone | ||
uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Europe/Paris" | ||
|
||
- name: Set up Yarn cache | ||
uses: c-hive/gha-yarn-cache@v2 | ||
|
||
|