From c57e0dfbeb2df2b6b48369ccbc127a56f743c464 Mon Sep 17 00:00:00 2001 From: George Adams Date: Sun, 7 Apr 2024 09:25:10 +0100 Subject: [PATCH] add Node.js testing --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb83f0c..a251e14 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,3 +24,24 @@ jobs: - name: Run Groovy Tests working-directory: adopt-github-release run: ./gradlew --info test + + test_node: + name: Node + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: 'generate-release-notes/generate-release-notes/package-lock.json' + + - name: Install Node Dependencies + working-directory: generate-release-notes/generate-release-notes + run: npm install + + - name: Run Tests + working-directory: generate-release-notes/generate-release-notes + run: npm test