Skip to content

Commit

Permalink
🔧 chore(build.yml): update workflow to include steps for verifying ve…
Browse files Browse the repository at this point in the history
…rsion, installing dependencies, building, and running tests
  • Loading branch information
sam-corbado committed Jan 15, 2024
1 parent 480f26e commit 0c5481a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,22 @@ jobs:
node-version: 18

- name: Cache Node.js modules
uses: actions/cache@v3
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Verify version
- run: node --version
- run: npm audit

- name: Install dependencies & build
- run: npm ci
- run: npm run build --if-present

- name: Run tests
- run: npm test
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
Expand Down

0 comments on commit 0c5481a

Please sign in to comment.