Skip to content

Commit

Permalink
chore: fixes so gha works without a lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
talmobi committed Sep 26, 2024
1 parent 794f6b6 commit c0139e0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ubuntu-node.js.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
Expand All @@ -21,11 +18,16 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test

- name: Workaround to create TTY
run: |
npm install
npm run build --if-present
script -q -c "npm test"

0 comments on commit c0139e0

Please sign in to comment.