Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
chore: add unit test github action steps (#516)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby authored Mar 21, 2022
1 parent 9815a30 commit d961e90
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 15.x, 16.x]
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2

Expand All @@ -36,19 +36,25 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: pnpm install
- run: pnpm lint
- name: Install dependencies
run: pnpm install
- name: Run code lint check
run: pnpm lint
- name: Run unit test
run: pnpm test:unit
- name: Run typescript type check
run: pnpm typecheck

github-release:
runs-on: ubuntu-latest
needs: check
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
- name: Install pnpm package manager
run: npm install -g pnpm
- run: pnpm install
Expand Down

0 comments on commit d961e90

Please sign in to comment.