fix: Move Github Action Workflow #2
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: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
- uses: actions/cache/restore@v3 | |
with: | |
key: npm-dependency-cache-${{hashfiles('./package-lock.json')}} | |
path: ./node_modules | |
- name: Install Dependencies | |
run: npm ci | |
- uses: actions/cache/save@v3 | |
with: | |
key: npm-dependency-cache-${{hashfiles('./package-lock.json')}} | |
path: ./node_modules | |
if: always() | |
- name: Run Tests | |
run: npm run test |