Content Update - Joe Cacc #10
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: PR | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build & Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use actions/checkout@v2 | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Handle Cache | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: | | |
node_modules | |
**/node_modules | |
~/.npm | |
key: node-deps-${{ hashFiles('package-lock.json') }} | |
- name: Install Deps | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Run Full Build | |
run: npm run build | |
- name: Run Knapsack Test | |
run: npm run ks:test |