From 96607393dfbce0f88a9a5fe76d2d570b55862806 Mon Sep 17 00:00:00 2001 From: Dusan Trickovic Date: Tue, 23 May 2023 12:35:12 +0200 Subject: [PATCH 1/2] Add workflow to test if modified setup-node breaks --- .github/workflows/test-action.yml | 43 ++++++++++++------------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 6b3415b..19000a1 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -1,29 +1,20 @@ -# name: 'Testing the issue' +name: 'Test the setup-node action' -# on: -# pull_request: -# paths-ignore: -# - '**.md' - -# push: -# branches: -# - main -# paths-ignore: -# - '**.md' +on: pull_request -# jobs: -# test-issue: -# runs-on: ubuntu-latest +jobs: + test-setup-node: + runs-on: ubuntu-latest -# steps: -# - name: Checkout repo -# uses: actions/checkout@v3 -# - uses: actions/setup-node@v3 -# with: -# node-version: ${{ env.NODE_VERSION }} -# cache: 'npm' -# cache-dependancy-path: '${{github.repository}}/ui/glypheditor/package-lock.json' -# - run: | -# npm ci -# npm run build --if-present -# #npm run test --if-present + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Setup Node + uses: dusan-trickovic/setup-node@test/cache-pkg-version + with: + node-version: 18.x + cache: npm + - name: Install dependencies + run: npm ci + - name: Success + run: echo 'Success!' \ No newline at end of file From 0bcc0731d80fa3137a8e1c8869551267f0b2b998 Mon Sep 17 00:00:00 2001 From: Dusan Trickovic Date: Tue, 30 May 2023 13:26:29 +0200 Subject: [PATCH 2/2] Add a step to check node version --- .github/workflows/test-action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 19000a1..3b174ef 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -17,4 +17,6 @@ jobs: - name: Install dependencies run: npm ci - name: Success - run: echo 'Success!' \ No newline at end of file + run: echo 'Success!' + - name: Node Version + run: node --version \ No newline at end of file