From 554a16b01bf36c60c8d9f3cf4c87c4ebed41cc41 Mon Sep 17 00:00:00 2001 From: Martin Svoboda Date: Sun, 30 Jun 2024 17:58:13 +0200 Subject: [PATCH] Try workflow with installing packages --- .github/workflows/test.yml | 8 +++++++- test_versions | 8 -------- 2 files changed, 7 insertions(+), 9 deletions(-) delete mode 100755 test_versions diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7221aa68..e4f2bb9a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,12 +52,18 @@ jobs: uses: actions/download-artifact@v2 with: name: lib - path: ./lib + path: ./libnpm install -g yarn - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + - name: Setup Yarn + run: | + npm install -g yarn + - name: Install packages + run: | + yarn install --frozen-lockfile --ignore-engines - name: Test run: yarn test diff --git a/test_versions b/test_versions deleted file mode 100755 index e6770e9a..00000000 --- a/test_versions +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -npm install -g typescript yarn -DEPS=$(jq -r '.dependencies, .devDependencies | to_entries[] | select(.key | test("jest"; "i") or . == "jest") | .key + "@" + .value' package.json) -for DEP in $DEPS -do - echo "Installing $DEP globally..." - npm install -g "$DEP" -done \ No newline at end of file