Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydo authored Jun 17, 2024
1 parent 03e33f1 commit 973a364
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test

- name: Set up Docker
run: sudo apt-get update && sudo apt-get install -y docker.io

- name: Build and test inside a Docker container
run: |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace node:${{ matrix.node-version }} /bin/bash -c "\
npm ci && \
npm run build --if-present && \
npm test"

0 comments on commit 973a364

Please sign in to comment.