-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add workflow to build and test
- Loading branch information
1 parent
c22989a
commit cfebeeb
Showing
1 changed file
with
10 additions
and
6 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 |
---|---|---|
|
@@ -4,22 +4,26 @@ on: | |
push: | ||
tags-ignore: | ||
- 'v*.*.*' | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14, 16] | ||
|
||
node: ['14', '16'] | ||
name: Test Node v${{ matrix.node }} version | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
|
@@ -31,7 +35,7 @@ jobs: | |
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.19.1 | ||
version: 6 | ||
|
||
- name: Install | ||
run: pnpm install --frozen-lockfile --ignore-script | ||
|