Feat: Add github workflows #2
Workflow file for this run
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: Verify Pull Request | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
verify_pull_request: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['14.x', '16.x', '18.x', '20.x'] | |
steps: | |
- name: Git clone the repository | |
uses: actions/checkout@v4 | |
- name: Use NodeJS ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Build the code | |
run: yarn build | |
- name: Run test | |
run: yarn test |