Skip to content

Commit

Permalink
add Node.js testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Apr 7, 2024
1 parent 2c689fc commit 5672ee9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'node:assert/strict';
import { test } from 'node:test';
import { fetchCommits } from '../lib/fetchGItHubCommits.js';
import { fetchCommits } from '../lib/fetchGitHubCommits.js';
import mockAPIResponse from './mock/mockAPIResponse.json' assert { type: 'json' };

const repository = 'adoptium/jdk17u'
Expand Down

0 comments on commit 5672ee9

Please sign in to comment.