fix: module.exports being overwritten #1
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
name: unit-test | |
on: | |
pull_request: | |
branches: | |
- release | |
- main | |
- master | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip actions]')" | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- name: Install deps | |
run: pnpm install | |
- name: Lint package | |
run: pnpm run lint | |
- name: Run unit test | |
run: pnpm run test |