From ba6180cd108077539813ac8c769bd4a4dca618ce Mon Sep 17 00:00:00 2001 From: talmobi Date: Thu, 26 Sep 2024 21:23:58 +0300 Subject: [PATCH] chore: fixes so gha works without a lockfile --- .github/workflows/ubuntu-node.js.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ubuntu-node.js.yml b/.github/workflows/ubuntu-node.js.yml index abac7d5..11a2761 100644 --- a/.github/workflows/ubuntu-node.js.yml +++ b/.github/workflows/ubuntu-node.js.yml @@ -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: @@ -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: | + script -q -c "npm install" + script -q -c "npm run build --if-present" + script -q -c "npm test" +