-
Notifications
You must be signed in to change notification settings - Fork 0
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
115 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 |
---|---|---|
@@ -0,0 +1,115 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
package: | ||
name: Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8.15.5 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
working-directory: ./package | ||
|
||
- name: Build Test | ||
run: pnpm build | ||
working-directory: ./package | ||
|
||
- name: Test | ||
run: pnpm test | ||
working-directory: ./package | ||
|
||
webapp: | ||
name: Webapp | ||
needs: package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8.15.5 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install deps for package | ||
run: pnpm install | ||
working-directory: ./package | ||
|
||
- name: Build package | ||
run: pnpm build | ||
working-directory: ./package | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
working-directory: ./webapp | ||
|
||
- name: Build Test | ||
run: pnpm build | ||
working-directory: ./webapp | ||
|
||
- name: Test | ||
run: pnpm test | ||
working-directory: ./webapp | ||
|
||
worker: | ||
name: Worker | ||
needs: package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8.15.5 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install deps for package | ||
run: pnpm install | ||
working-directory: ./package | ||
|
||
- name: Build package | ||
run: pnpm build | ||
working-directory: ./package | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
working-directory: ./worker | ||
|
||
- name: Test | ||
run: pnpm test | ||
working-directory: ./worker |