Bump word-wrap from 1.2.3 to 1.2.4 #59
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: project-tests | |
on: | |
workflow_call: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
name: build and test the app | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout repository | |
uses: actions/checkout@v3 | |
- name: 🔧 Setup Node.js Environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
cache: 'npm' | |
- name: 🔧 install npm | |
run: npm ci | |
- name: 🔧 Build project | |
run: npm run build --if-present | |
- name: 🔍 Test project | |
run: npm test | |
- name: ☁️ Upload the build directory | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
path: build/ | |
retention-days: 1 | |