-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use full path of java executable + Refactor CI/CD to test on Mac & Ja…
…va 21 (#81) * Handle case where Java 21 is installed and we need 17 by using full path of java executable Related to nvuillam/vscode-groovy-lint#217 (comment) * Factorization * cspell * changelog * Also test java 21 * Upgrade CI * skip java 8 for Mac * fail-fast: false * murf * smurf * Add quotes only if spaces in overridden javaExecutable * Upgrade njre & show its debugs in CI * yamllint * Fix * Java 8 on Mac is not supported: Set default minimum java version to 11 on Mac * Exclude mac + 8 from tests * Delete circle CI config * Fix case with spaces * Revert "Delete circle CI config" This reverts commit 2ac4004. * Remove java14 * circle ci * Arrange tests * upgrade njre * skip java 14 on mac tests * fix test case
- Loading branch information
Showing
8 changed files
with
838 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: read-all | ||
|
||
concurrency: | ||
group: ${{ github.ref_name }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: ['18', '20'] | ||
java_version: ['8', '11', '17', '21'] | ||
java_distrib: [temurin] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
include: | ||
- node_version: '18' | ||
java_version: '17' | ||
java_distrib: adopt | ||
os: ubuntu-latest | ||
exclude: | ||
# excludes node 8 on macOS | ||
- os: macos-latest | ||
java_version: '8' | ||
name: Test | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Install node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: Install Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ matrix.java_distrib }} | ||
java-version: ${{ matrix.java_version }} | ||
- name: Install dependencies and link | ||
run: npm ci | ||
- name: Run tests | ||
env: | ||
DEBUG: java-caller,njre | ||
run: npm run test | ||
|
||
coverage: | ||
name: Test - No Java - CodeCov | ||
strategy: | ||
matrix: | ||
debian_version: [bookworm] | ||
node_version: ['18'] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
container: | ||
image: "node:${{ matrix.node_version }}-${{ matrix.debian_version }}" | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies and link | ||
run: npm ci | ||
- name: Run tests | ||
env: | ||
DEBUG: "java-caller" | ||
run: npm run test:coverage | ||
- name: Build coverage report | ||
run: ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: true | ||
file: coverage.lcov | ||
flags: unittests | ||
verbose: true | ||
dry_run: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.