Compare commits

..

9 Commits

Author SHA1 Message Date
Fabio Niephaus
b0cb26a8da Bump version to 1.3.1. 2025-02-12 21:31:35 +01:00
Fabio Niephaus
30b157ff45 Ensure cache: 'maven' is tested. 2025-02-12 21:31:35 +01:00
Fabio Niephaus
0f761465f7 Convert back to CJS and use ncc. 2025-02-12 21:31:35 +01:00
Fabio Niephaus
f07b5bfaef Update dist files. 2025-02-12 14:38:09 +01:00
dependabot[bot]
fcc01ed19b Bump semver from 7.6.3 to 7.7.1
Dependabot couldn't find the original pull request head commit, d99c250780f60ae25820f76a799d34572762727f.
2025-02-12 14:38:09 +01:00
dependabot[bot]
c65e623881 Bump @octokit/types from 12.6.0 to 13.8.0
Bumps [@octokit/types](https://github.com/octokit/types.ts) from 12.6.0 to 13.8.0.
- [Release notes](https://github.com/octokit/types.ts/releases)
- [Commits](https://github.com/octokit/types.ts/compare/v12.6.0...v13.8.0)

---
updated-dependencies:
- dependency-name: "@octokit/types"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-12 14:23:45 +01:00
dependabot[bot]
3040d71541 Bump eslint-config-prettier from 9.1.0 to 10.0.1
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 9.1.0 to 10.0.1.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.0.1)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-12 14:19:07 +01:00
Fabio Niephaus
70a5974953 Fix PASSES_GDS_TOKEN_CHECK. 2025-02-12 12:55:33 +01:00
dependabot[bot]
aa331906a0 Bump the npm-development group with 5 updates
Bumps the npm-development group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.17.14` | `20.17.17` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.22.0` | `8.24.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.22.0` | `8.24.0` |
| [eslint](https://github.com/eslint/eslint) | `9.19.0` | `9.20.1` |
| [prettier](https://github.com/prettier/prettier) | `3.4.2` | `3.5.0` |


Updates `@types/node` from 20.17.14 to 20.17.17
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@typescript-eslint/eslint-plugin` from 8.22.0 to 8.24.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.24.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.22.0 to 8.24.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.24.0/packages/parser)

Updates `eslint` from 9.19.0 to 9.20.1
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.19.0...v9.20.1)

Updates `prettier` from 3.4.2 to 3.5.0
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.4.2...3.5.0)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-12 12:55:33 +01:00
27 changed files with 134578 additions and 123905 deletions

View File

@@ -90,7 +90,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
components: ${{ matrix.components }} components: ${{ matrix.components }}
gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }} gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }}
if: env.PASSES_GDS_TOKEN_CHECK if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' }}
- name: Check environment - name: Check environment
run: | run: |
echo "GRAALVM_HOME: $GRAALVM_HOME" echo "GRAALVM_HOME: $GRAALVM_HOME"
@@ -103,14 +103,14 @@ jobs:
java --version java --version
java --version | grep "GraalVM" || exit 34 java --version | grep "GraalVM" || exit 34
native-image --version native-image --version
if: runner.os != 'Windows' && env.PASSES_GDS_TOKEN_CHECK if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' && runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
run: | run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME" echo "JAVA_HOME: $env:JAVA_HOME"
java --version java --version
native-image --version native-image --version
if: runner.os == 'Windows' && env.PASSES_GDS_TOKEN_CHECK if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' && runner.os == 'Windows' }}
test-action-ce: # make sure the action works on a clean machine without building test-action-ce: # make sure the action works on a clean machine without building
needs: test-action needs: test-action
@@ -172,7 +172,7 @@ jobs:
if [[ "${{ matrix.java-version }}" != "dev" ]]; then if [[ "${{ matrix.java-version }}" != "dev" ]]; then
gu list gu list
fi fi
if: runner.os != 'Windows' if: ${{ runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
run: | run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "GRAALVM_HOME: $env:GRAALVM_HOME"
@@ -180,13 +180,16 @@ jobs:
java -version java -version
native-image --version native-image --version
gu.cmd remove native-image gu.cmd remove native-image
if: runner.os == 'Windows' if: ${{ runner.os == 'Windows' }}
test-action-ee: test-action-ee:
needs: test-action needs: test-action
name: EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }} name: EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env:
# Skip builds that require a GDS token but have no access to one (e.g., secrets are unavailable in PR runs)
PASSES_GDS_TOKEN_CHECK: ${{ secrets.GDS_TOKEN != '' }}
strategy: strategy:
matrix: matrix:
version: ['latest'] version: ['latest']
@@ -212,6 +215,7 @@ jobs:
java-version: ${{ matrix.java-version }} java-version: ${{ matrix.java-version }}
components: ${{ matrix.components }} components: ${{ matrix.components }}
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' }}
- name: Check environment - name: Check environment
run: | run: |
echo "GRAALVM_HOME: $GRAALVM_HOME" echo "GRAALVM_HOME: $GRAALVM_HOME"
@@ -221,7 +225,7 @@ jobs:
java --version | grep -e "GraalVM EE" -e "Oracle GraalVM" || exit 23 java --version | grep -e "GraalVM EE" -e "Oracle GraalVM" || exit 23
native-image --version native-image --version
gu list gu list
if: runner.os != 'Windows' if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' && runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
run: | run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "GRAALVM_HOME: $env:GRAALVM_HOME"
@@ -229,7 +233,7 @@ jobs:
java --version java --version
native-image --version native-image --version
gu.cmd remove native-image gu.cmd remove native-image
if: runner.os == 'Windows' if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' && runner.os == 'Windows' }}
test-action-mandrel: test-action-mandrel:
needs: test-action needs: test-action
@@ -267,14 +271,14 @@ jobs:
java --version java --version
java --version | grep "Temurin" || exit 23 java --version | grep "Temurin" || exit 23
native-image --version native-image --version
if: runner.os != 'Windows' if: ${{ runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
run: | run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME" echo "JAVA_HOME: $env:JAVA_HOME"
java --version java --version
native-image --version native-image --version
if: runner.os == 'Windows' if: ${{ runner.os == 'Windows' }}
test-action-liberica: test-action-liberica:
needs: test-action needs: test-action
@@ -303,7 +307,7 @@ jobs:
java --version | fgrep -qw ${{ matrix.java-version }} || exit 23 java --version | fgrep -qw ${{ matrix.java-version }} || exit 23
native-image --version native-image --version
native-image --version | fgrep -qw ${{ matrix.java-version }} || exit 24 native-image --version | fgrep -qw ${{ matrix.java-version }} || exit 24
if: runner.os != 'Windows' if: ${{ runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
shell: pwsh shell: pwsh
run: | run: |
@@ -317,7 +321,7 @@ jobs:
if (!(native-image --version | findstr \<${{ matrix.java-version }}\>)) { if (!(native-image --version | findstr \<${{ matrix.java-version }}\>)) {
exit 24 exit 24
} }
if: runner.os == 'Windows' if: ${{ runner.os == 'Windows' }}
test-action-native-image-windows: test-action-native-image-windows:
name: native-image on windows-latest name: native-image on windows-latest
@@ -466,17 +470,18 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
components: ${{ matrix.components }} components: ${{ matrix.components }}
native-image-enable-sbom: 'true' native-image-enable-sbom: 'true'
cache: 'maven'
- name: Build Maven project and verify that SBOM was generated and its contents - name: Build Maven project and verify that SBOM was generated and its contents
run: | run: |
cd __tests__/sbom/main-test-app cd __tests__/sbom/main-test-app
mvn --no-transfer-progress -Pnative package mvn --no-transfer-progress -Pnative package
bash verify-sbom.sh bash verify-sbom.sh
shell: bash shell: bash
if: runner.os != 'Windows' if: ${{ runner.os != 'Windows' }}
- name: Build Maven project and verify that SBOM was generated and its contents (Windows) - name: Build Maven project and verify that SBOM was generated and its contents (Windows)
run: | run: |
cd __tests__\sbom\main-test-app cd __tests__\sbom\main-test-app
mvn --no-transfer-progress -Pnative package mvn --no-transfer-progress -Pnative package
cmd /c verify-sbom.cmd cmd /c verify-sbom.cmd
shell: cmd shell: cmd
if: runner.os == 'Windows' if: ${{ runner.os == 'Windows' }}

View File

@@ -72,6 +72,6 @@ outputs:
description: 'A boolean value to indicate an exact match was found for the primary key' description: 'A boolean value to indicate an exact match was found for the primary key'
runs: runs:
using: 'node20' using: 'node20'
main: 'dist/main.js' main: 'dist/main/index.js'
post: 'dist/cleanup.js' post: 'dist/cleanup/index.js'
post-if: 'success()' post-if: 'success()'

1
dist/cleanup.js.map generated vendored

File diff suppressed because one or more lines are too long

129353
dist/main.js → dist/cleanup/index.js generated vendored

File diff suppressed because one or more lines are too long

1
dist/main.js.map generated vendored

File diff suppressed because one or more lines are too long

128118
dist/cleanup.js → dist/main/index.js generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,29 +1,14 @@
// See: https://jestjs.io/docs/configuration module.exports = {
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
clearMocks: true, clearMocks: true,
collectCoverage: true, collectCoverage: true,
collectCoverageFrom: ['./src/**'], collectCoverageFrom: ['./src/**'],
coverageDirectory: './coverage', coverageDirectory: './coverage',
coveragePathIgnorePatterns: ['/node_modules/', '/dist/'], coveragePathIgnorePatterns: ['/node_modules/', '/dist/'],
coverageReporters: ['json-summary', 'text', 'lcov'], coverageReporters: ['json-summary', 'text', 'lcov'],
extensionsToTreatAsEsm: ['.ts'], moduleFileExtensions: ['js', 'ts'],
moduleFileExtensions: ['ts', 'js'],
preset: 'ts-jest',
reporters: ['default'],
resolver: 'ts-jest-resolver',
testEnvironment: 'node',
testMatch: ['**/*.test.ts'], testMatch: ['**/*.test.ts'],
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
transform: { transform: {
'^.+\\.ts$': [ '^.+\\.ts$': 'ts-jest'
'ts-jest',
{
tsconfig: 'tsconfig.eslint.json',
useESM: true
}
]
}, },
verbose: true verbose: true
} }

793
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -2,8 +2,7 @@
"name": "setup-graalvm", "name": "setup-graalvm",
"author": "GraalVM Community", "author": "GraalVM Community",
"description": "GitHub Action for GraalVM", "description": "GitHub Action for GraalVM",
"version": "1.3.0", "version": "1.3.1",
"type": "module",
"private": true, "private": true,
"repository": { "repository": {
"type": "git", "type": "git",
@@ -27,8 +26,8 @@
"format:check": "npx prettier --check .", "format:check": "npx prettier --check .",
"lint": "npx eslint .", "lint": "npx eslint .",
"package": "npm run package:main && npm run package:cleanup", "package": "npm run package:main && npm run package:cleanup",
"package:main": "npx rollup --config rollup.main.config.ts --configPlugin @rollup/plugin-typescript", "package:main": "npx ncc build src/main.ts -o dist/main",
"package:cleanup": "npx rollup --config rollup.cleanup.config.ts --configPlugin @rollup/plugin-typescript", "package:cleanup": "npx ncc build src/cleanup.ts -o dist/cleanup",
"test": "npx jest", "test": "npx jest",
"all": "npm run format:write && npm run lint && npm run test && npm run package" "all": "npm run format:write && npm run lint && npm run test && npm run package"
}, },
@@ -43,25 +42,22 @@
"@actions/io": "^1.1.3", "@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.2", "@actions/tool-cache": "^2.0.2",
"@octokit/core": "^5.2.0", "@octokit/core": "^5.2.0",
"@octokit/types": "^12.6.0", "@octokit/types": "^13.8.0",
"@github/dependency-submission-toolkit": "^2.0.4", "@github/dependency-submission-toolkit": "^2.0.4",
"semver": "^7.6.3", "semver": "^7.7.1",
"uuid": "^11.0.5" "uuid": "^11.0.5"
}, },
"devDependencies": { "devDependencies": {
"@eslint/compat": "^1.2.6", "@eslint/compat": "^1.2.6",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-typescript": "^12.1.1",
"@types/jest": "^29.5.14", "@types/jest": "^29.5.14",
"@types/node": "^20.17.12", "@types/node": "^20.17.17",
"@types/semver": "^7.5.8", "@types/semver": "^7.5.8",
"@types/uuid": "^10.0.0", "@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.22.0", "@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.22.0", "@typescript-eslint/parser": "^8.24.0",
"eslint": "^9.19.0", "@vercel/ncc": "^0.38.3",
"eslint-config-prettier": "^9.1.0", "eslint": "^9.20.1",
"eslint-config-prettier": "^10.0.1",
"eslint-import-resolver-typescript": "^3.6.3", "eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0", "eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.10.0", "eslint-plugin-jest": "^28.10.0",
@@ -70,15 +66,10 @@
"eslint-plugin-prettier": "^5.2.3", "eslint-plugin-prettier": "^5.2.3",
"jest": "^29.7.0", "jest": "^29.7.0",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"prettier": "^3.4.2", "prettier": "^3.5.0",
"prettier-eslint": "^16.3.0", "prettier-eslint": "^16.3.0",
"rollup": "^4.34.1",
"ts-jest": "^29.2.5", "ts-jest": "^29.2.5",
"ts-jest-resolver": "^2.0.1",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "^5.7.3" "typescript": "^5.7.3"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "*"
} }
} }

View File

@@ -1,19 +0,0 @@
// See: https://rollupjs.org/introduction/
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import nodeResolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
const config = {
input: 'src/cleanup.ts',
output: {
esModule: true,
file: 'dist/cleanup.js',
format: 'es',
sourcemap: true
},
plugins: [typescript(), nodeResolve(), commonjs(), json()]
}
export default config

View File

@@ -1,19 +0,0 @@
// See: https://rollupjs.org/introduction/
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import nodeResolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
const config = {
input: 'src/main.ts',
output: {
esModule: true,
file: 'dist/main.js',
format: 'es',
sourcemap: true
},
plugins: [typescript(), nodeResolve(), commonjs(), json()]
}
export default config

View File

@@ -25,10 +25,10 @@
*/ */
import * as core from '@actions/core' import * as core from '@actions/core'
import * as constants from './constants.js' import * as constants from './constants'
import { save } from './features/cache.js' import { save } from './features/cache'
import { generateReports } from './features/reports.js' import { generateReports } from './features/reports'
import { processSBOM } from './features/sbom.js' import { processSBOM } from './features/sbom'
/** /**
* Check given input and run a save process for the specified package manager * Check given input and run a save process for the specified package manager

View File

@@ -1,6 +1,6 @@
import * as otypes from '@octokit/types' import * as otypes from '@octokit/types'
export const ACTION_VERSION = '1.3.0' export const ACTION_VERSION = '1.3.1'
export const INPUT_VERSION = 'version' export const INPUT_VERSION = 'version'
export const INPUT_GDS_TOKEN = 'gds-token' export const INPUT_GDS_TOKEN = 'gds-token'

View File

@@ -1,6 +1,6 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import { GRAALVM_PLATFORM } from './constants.js' import { GRAALVM_PLATFORM } from './constants'
import { exec } from './utils.js' import { exec } from './utils'
const APT_GET_INSTALL_BASE = 'sudo apt-get -y --no-upgrade install' const APT_GET_INSTALL_BASE = 'sudo apt-get -y --no-upgrade install'
const COMPONENT_TO_DEPS = new Map<string, Map<string, string>>([ const COMPONENT_TO_DEPS = new Map<string, Map<string, string>>([

View File

@@ -1,7 +1,7 @@
import * as c from '../constants.js' import * as c from '../constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as tc from '@actions/tool-cache' import * as tc from '@actions/tool-cache'
import { exec } from '../utils.js' import { exec } from '../utils'
import { join } from 'path' import { join } from 'path'
const MUSL_NAME = 'x86_64-linux-musl-native' const MUSL_NAME = 'x86_64-linux-musl-native'

View File

@@ -1,4 +1,4 @@
import * as c from '../constants.js' import * as c from '../constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as fs from 'fs' import * as fs from 'fs'
import * as github from '@actions/github' import * as github from '@actions/github'
@@ -11,7 +11,7 @@ import {
updatePRComment, updatePRComment,
tmpfile, tmpfile,
setNativeImageOption setNativeImageOption
} from '../utils.js' } from '../utils'
const BUILD_OUTPUT_JSON_PATH = tmpfile('native-image-build-output.json') const BUILD_OUTPUT_JSON_PATH = tmpfile('native-image-build-output.json')
const BYTES_TO_KiB = 1024 const BYTES_TO_KiB = 1024

View File

@@ -1,11 +1,11 @@
import * as c from '../constants.js' import * as c from '../constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as fs from 'fs' import * as fs from 'fs'
import * as github from '@actions/github' import * as github from '@actions/github'
import * as glob from '@actions/glob' import * as glob from '@actions/glob'
import { basename } from 'path' import { basename } from 'path'
import * as semver from 'semver' import * as semver from 'semver'
import { setNativeImageOption } from '../utils.js' import { setNativeImageOption } from '../utils'
const INPUT_NI_SBOM = 'native-image-enable-sbom' const INPUT_NI_SBOM = 'native-image-enable-sbom'
const SBOM_FILE_SUFFIX = '.sbom.json' const SBOM_FILE_SUFFIX = '.sbom.json'

View File

@@ -1,4 +1,4 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as fs from 'fs' import * as fs from 'fs'
import * as httpClient from '@actions/http-client' import * as httpClient from '@actions/http-client'
@@ -8,8 +8,8 @@ import * as stream from 'stream'
import * as util from 'util' import * as util from 'util'
import * as semver from 'semver' import * as semver from 'semver'
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http' import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http'
import { RetryHelper } from '@actions/tool-cache/lib/retry-helper.js' import { RetryHelper } from '@actions/tool-cache/lib/retry-helper'
import { calculateSHA256 } from './utils.js' import { calculateSHA256 } from './utils'
import { ok } from 'assert' import { ok } from 'assert'
import { v4 as uuidv4 } from 'uuid' import { v4 as uuidv4 } from 'uuid'

View File

@@ -1,4 +1,4 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as semver from 'semver' import * as semver from 'semver'
import { import {
@@ -8,8 +8,8 @@ import {
getLatestRelease, getLatestRelease,
getMatchingTags, getMatchingTags,
getTaggedRelease getTaggedRelease
} from './utils.js' } from './utils'
import { downloadGraalVM, downloadGraalVMEELegacy } from './gds.js' import { downloadGraalVM, downloadGraalVMEELegacy } from './gds'
import { downloadTool } from '@actions/tool-cache' import { downloadTool } from '@actions/tool-cache'
import { basename } from 'path' import { basename } from 'path'

View File

@@ -1,8 +1,8 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as semver from 'semver' import * as semver from 'semver'
import { GRAALVM_PLATFORM } from './constants.js' import { GRAALVM_PLATFORM } from './constants'
import { exec } from './utils.js' import { exec } from './utils'
import { join } from 'path' import { join } from 'path'
const BASE_FLAGS = ['--non-interactive', 'install', '--no-progress'] const BASE_FLAGS = ['--non-interactive', 'install', '--no-progress']

View File

@@ -1,6 +1,6 @@
import * as c from './constants.js' import * as c from './constants'
import * as semver from 'semver' import * as semver from 'semver'
import { downloadExtractAndCacheJDK, getTaggedRelease, getMatchingTags } from './utils.js' import { downloadExtractAndCacheJDK, getTaggedRelease, getMatchingTags } from './utils'
import { downloadTool } from '@actions/tool-cache' import { downloadTool } from '@actions/tool-cache'
import { spawnSync } from 'child_process' import { spawnSync } from 'child_process'

View File

@@ -1,20 +1,20 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as graalvm from './graalvm.js' import * as graalvm from './graalvm'
import * as semver from 'semver' import * as semver from 'semver'
import { isFeatureAvailable as isCacheAvailable } from '@actions/cache' import { isFeatureAvailable as isCacheAvailable } from '@actions/cache'
import { basename, join } from 'path' import { basename, join } from 'path'
import { restore } from './features/cache.js' import { restore } from './features/cache'
import { setUpDependencies } from './dependencies.js' import { setUpDependencies } from './dependencies'
import { setUpGUComponents } from './gu.js' import { setUpGUComponents } from './gu'
import { setUpMandrel } from './mandrel.js' import { setUpMandrel } from './mandrel'
import { setUpLiberica } from './liberica.js' import { setUpLiberica } from './liberica'
import { checkForUpdates } from './features/check-for-updates.js' import { checkForUpdates } from './features/check-for-updates'
import { setUpNativeImageMusl } from './features/musl.js' import { setUpNativeImageMusl } from './features/musl'
import { setUpWindowsEnvironment } from './msvc.js' import { setUpWindowsEnvironment } from './msvc'
import { setUpNativeImageBuildReports } from './features/reports.js' import { setUpNativeImageBuildReports } from './features/reports'
import { exec } from '@actions/exec' import { exec } from '@actions/exec'
import { setUpSBOMSupport } from './features/sbom.js' import { setUpSBOMSupport } from './features/sbom'
async function run(): Promise<void> { async function run(): Promise<void> {
try { try {

View File

@@ -1,6 +1,6 @@
import * as c from './constants.js' import * as c from './constants'
import * as httpClient from '@actions/http-client' import * as httpClient from '@actions/http-client'
import { downloadExtractAndCacheJDK } from './utils.js' import { downloadExtractAndCacheJDK } from './utils'
import { downloadTool } from '@actions/tool-cache' import { downloadTool } from '@actions/tool-cache'
import { basename } from 'path' import { basename } from 'path'

View File

@@ -1,7 +1,7 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import { execSync } from 'child_process' import { execSync } from 'child_process'
import { existsSync } from 'fs' import { existsSync } from 'fs'
import { VERSION_DEV } from './constants.js' import { VERSION_DEV } from './constants'
// Keep in sync with https://github.com/actions/virtual-environments // Keep in sync with https://github.com/actions/virtual-environments
const KNOWN_VISUAL_STUDIO_INSTALLATIONS = [ const KNOWN_VISUAL_STUDIO_INSTALLATIONS = [

View File

@@ -1,4 +1,4 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as github from '@actions/github' import * as github from '@actions/github'
import * as httpClient from '@actions/http-client' import * as httpClient from '@actions/http-client'

View File

@@ -15,6 +15,7 @@
"noUnusedParameters": false, "noUnusedParameters": false,
"pretty": true, "pretty": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"sourceMap": true,
"strict": true, "strict": true,
"strictNullChecks": true, "strictNullChecks": true,
"target": "ES2022" "target": "ES2022"

View File

@@ -6,12 +6,5 @@
"noEmit": true "noEmit": true
}, },
"exclude": ["dist", "node_modules"], "exclude": ["dist", "node_modules"],
"include": [ "include": ["__tests__", "src", "eslint.config.mjs", "jest.config.js"]
"__tests__",
"src",
"eslint.config.mjs",
"jest.config.js",
"rollup.cleanup.config.ts",
"rollup.main.config.ts"
]
} }