chore(release): update release 5.0.2 #305
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: Lint and Test PR | |
on: | |
pull_request: | |
branches: [ master, main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [20.x, 22.x] | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: npm i | |
- name: Verify Github PR Title | |
run: echo $TITLE | npx commitlint | |
- name: Verify Git Commit Name | |
run: git log -1 --pretty=format:"%s" | npx commitlint | |
- name: Lint the code | |
run: npm run lint | |
- name: Run test | |
run: npm run test |