Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 4a5145f

Browse files
chore(deps): bump @actions/core from 2.0.3 to 3.0.0 (#472)
* chore(deps): bump @actions/core from 2.0.3 to 3.0.0 Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 2.0.3 to 3.0.0. - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) --- updated-dependencies: - dependency-name: "@actions/core" dependency-version: 3.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * refactor: migrate to ES modules --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcos Sevilla <31174242+marcossevilla@users.noreply.github.com> Co-authored-by: Marcos Sevilla <marcossevilla14@gmail.com>
1 parent 2f6a83d commit 4a5145f

9 files changed

Lines changed: 25698 additions & 26431 deletions

File tree

dist/index.js

Lines changed: 25642 additions & 26384 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/package.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sourcemap-register.cjs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const js = require('@eslint/js');
2-
const globals = require('globals');
3-
const jest = require('eslint-plugin-jest');
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
import jest from 'eslint-plugin-jest';
44

5-
module.exports = [
5+
export default [
66
{
77
files: ['*.js'],
88
ignores: ['eslint.config.js'],

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const core = require('@actions/core');
2-
const minimatch = require('minimatch');
3-
const parse = require('lcov-parse');
4-
const fs = require('fs');
1+
import * as core from '@actions/core';
2+
import { minimatch } from 'minimatch';
3+
import parse from 'lcov-parse';
4+
import fs from 'fs';
55

66
function run() {
77
const lcovPath = core.getInput('path');
@@ -77,7 +77,7 @@ function run() {
7777

7878
function shouldCalculateCoverageForFile(fileName, excludedFiles) {
7979
for (let i = 0; i < excludedFiles.length; i++) {
80-
const isExcluded = minimatch.minimatch(fileName, excludedFiles[i]);
80+
const isExcluded = minimatch(fileName, excludedFiles[i]);
8181
if (isExcluded) {
8282
core.debug(`Excluding ${fileName} from coverage`);
8383
return false;

index.test.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
const process = require('process');
2-
const cp = require('child_process');
3-
const path = require('path');
4-
const { fail } = require('assert');
1+
import process from 'process';
2+
import cp from 'child_process';
3+
import path from 'path';
4+
import { fileURLToPath } from 'url';
5+
import { fail } from 'assert';
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
59

610
const getErrorOutput = (error) => {
711
const output = Array(...error.output)

package-lock.json

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
"name": "very-good-coverage",
33
"version": "2.1.0",
44
"description": "A Github Action which helps enforce code coverage threshold using lcov",
5+
"type": "module",
56
"main": "index.js",
67
"scripts": {
78
"lint": "eslint *.js",
89
"format": "prettier --write .",
910
"check_format": "prettier --check .",
1011
"prepare": "npm run format && ncc build index.js -o dist --source-map --license licenses.txt",
11-
"test": "jest",
12+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
1213
"all": "npm run lint && npm run prepare && npm run test"
1314
},
1415
"repository": {
@@ -33,7 +34,7 @@
3334
},
3435
"homepage": "https://github.com/VeryGoodOpenSource/very_good_coverage",
3536
"dependencies": {
36-
"@actions/core": "^2.0.3",
37+
"@actions/core": "^3.0.0",
3738
"lcov-parse": "^1.0.0",
3839
"minimatch": "^10.1.2",
3940
"prettier": "^3.8.1"

0 commit comments

Comments
 (0)