-
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
18 additions
and
13 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 |
---|---|---|
|
@@ -10,23 +10,28 @@ on: | |
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.12.0] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
node-version: [20.12.0] # Latest LTS | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
- run: pnpm build --if-present | ||
- run: pnpm test | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ${{ matrix.node-version }} | ||
cache: pnpm | ||
|
||
- run: pnpm install | ||
|
||
- run: pnpm build | ||
|
||
- run: pnpm test |