Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump CI to Java 21 + add Node.js testing #159

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,30 @@ jobs:
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: 'temurin'
java-version: '11'
java-version: '21'
cache: 'gradle'

- name: Run Groovy Tests
run: |
cd adopt-github-release
./gradlew --info test
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