Run on Node 20.x (#16)

Also move to @clechasseur/rs-actions-core for more up-to-date dependencies
This commit is contained in:
Charles Lechasseur
2024-04-23 16:26:03 -06:00
committed by GitHub
parent 4da312dd0f
commit fe0359b3e1
10 changed files with 4901 additions and 14405 deletions
+9 -3
View File
@@ -6,10 +6,16 @@ jobs:
main: main:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - name: Create npm configuration
- uses: actions/setup-node@v3 run: echo "//npm.pkg.github.com/:_authToken=${token}" >> ~/.npmrc
env:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: with:
node-version: 16 node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci - run: npm ci
# octokit types problem ? # octokit types problem ?
# - run: npm run lint # - run: npm run lint
+1 -1
View File
@@ -1 +1 @@
@actions-rs:registry=https://npm.pkg.github.com @clechasseur:registry=https://npm.pkg.github.com
+1 -1
View File
@@ -1 +1 @@
v16 v20
+1 -1
View File
@@ -13,5 +13,5 @@ inputs:
required: false required: false
runs: runs:
using: 'node16' using: 'node20'
main: 'dist/index.js' main: 'dist/index.js'
+67 -1
View File
File diff suppressed because one or more lines are too long
+4817 -14388
View File
File diff suppressed because it is too large Load Diff
+15 -19
View File
@@ -34,26 +34,22 @@
"url": "https://github.com/actions-rs/audit-check/issues" "url": "https://github.com/actions-rs/audit-check/issues"
}, },
"dependencies": { "dependencies": {
"@rinse-repeat/actions-rs-core": "0.1.8", "@clechasseur/rs-actions-core": "^3.0.1",
"@actions/core": "^1.2.6", "nunjucks": "^3.2.4"
"@actions/github": "^5.1.0",
"npm-check-updates": "^16.8.0",
"nunjucks": "^3.2.3"
}, },
"devDependencies": { "devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.56.0", "@typescript-eslint/parser": "^6.21.0",
"ts-node": "^10.9.1", "@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^5.56.0", "ts-node": "^10.9.2",
"eslint": "^8.36.0", "eslint": "^8.56.0",
"eslint-config-prettier": "^6.11.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^3.1.3", "eslint-plugin-prettier": "^5.1.3",
"@types/jest": "^26.0.1", "@types/jest": "^29.5.12",
"@types/node": "^16.11.7", "@types/node": "^20.11.17",
"@vincentriemer/ncc": "^0.20.5", "@vercel/ncc": "0.38.1",
"jest": "^26.0.1", "jest": "^29.7.0",
"jest-circus": "^26.0.1", "ts-jest": "^29.1.2",
"ts-jest": "^26.0.1", "typescript": "^5.3.3",
"typescript": "^3.8.3", "prettier": "^3.2.5"
"prettier": "^2.0.5"
} }
} }
+2 -3
View File
@@ -2,8 +2,7 @@
* Parse action input into a some proper thing. * Parse action input into a some proper thing.
*/ */
import { input } from '@rinse-repeat/actions-rs-core'; import { input } from '@clechasseur/rs-actions-core';
import { getInputList } from '@rinse-repeat/actions-rs-core/dist/input';
// Parsed action input // Parsed action input
export interface Input { export interface Input {
@@ -14,6 +13,6 @@ export interface Input {
export function get(): Input { export function get(): Input {
return { return {
token: input.getInput('token', { required: true }), token: input.getInput('token', { required: true }),
ignore: getInputList('ignore', { required: false }), ignore: input.getInputList('ignore', { required: false }),
}; };
} }
+2 -2
View File
@@ -4,7 +4,7 @@ import * as os from 'os';
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 { Cargo } from '@rinse-repeat/actions-rs-core'; import { Cargo } from '@clechasseur/rs-actions-core';
import * as input from './input'; import * as input from './input';
import * as interfaces from './interfaces'; import * as interfaces from './interfaces';
@@ -100,7 +100,7 @@ async function main(): Promise<void> {
const actionInput = input.get(); const actionInput = input.get();
await run(actionInput); await run(actionInput);
} catch (error) { } catch (error) {
core.setFailed(error.message); core.setFailed((error as Error).message);
} }
return; return;
+1 -1
View File
@@ -4,7 +4,7 @@ import * as core from '@actions/core';
import * as github from '@actions/github'; import * as github from '@actions/github';
import * as nunjucks from 'nunjucks'; import * as nunjucks from 'nunjucks';
import { checks } from '@rinse-repeat/actions-rs-core'; import { checks } from '@clechasseur/rs-actions-core';
import * as interfaces from './interfaces'; import * as interfaces from './interfaces';
import * as templates from './templates'; import * as templates from './templates';