Merge pull request #3 from hienngm/chore/update-readme #4
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: E2E tests | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
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: npm install | |
- name: Build the code | |
run: npm run build | |
- name: Run test | |
run: npm run test |