Add workflow #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: Test | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Node it | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
ref: ${{ github.head_ref }} | |
- name: Install it | |
run: npm install | |
- name: Build it | |
run: npm run build | |
- name: Test it | |
run: npm run test |