Update dependency and Node versions. (#68)

* Update dependency and Node versions.

* Re-lock.
This commit is contained in:
Predrag Gruevski 2024-03-19 14:32:54 -04:00 committed by GitHub
parent c451059d78
commit 17d9392a8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 502 additions and 532 deletions

View file

@ -10,10 +10,12 @@ jobs:
steps: steps:
- name: Checkout the action - name: Checkout the action
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js 16.x
- name: Setup Node.js 20.x
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 20
- name: Install npm-cli-login - name: Install npm-cli-login
run: npm install -g npm-cli-login run: npm install -g npm-cli-login
- name: Login to GitHub npm registry - name: Login to GitHub npm registry
@ -22,10 +24,12 @@ jobs:
run: | run: |
npm-cli-login -s @actions-rs -r https://npm.pkg.github.com \ npm-cli-login -s @actions-rs -r https://npm.pkg.github.com \
-u does_not_matter -p ${{ secrets.GITHUB_TOKEN }} -e does_not_m@ter.com -u does_not_matter -p ${{ secrets.GITHUB_TOKEN }} -e does_not_m@ter.com
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Rebuild the action and run tests - name: Rebuild the action and run tests
run: npm run all run: npm run all
- name: Compare the expected and actual src/ directories - name: Compare the expected and actual src/ directories
run: | run: |
if [ "$(git diff src/ | wc -l)" -gt "0" ]; then if [ "$(git diff src/ | wc -l)" -gt "0" ]; then
@ -33,12 +37,14 @@ jobs:
exit 1 exit 1
fi fi
id: diff_src id: diff_src
- name: Upload the expected version of src/ in case of failure - name: Upload the expected version of src/ in case of failure
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff_src.conclusion == 'failure' }} if: ${{ failure() && steps.diff_src.conclusion == 'failure' }}
with: with:
name: expected-src name: expected-src
path: src/ path: src/
- name: Compare the expected and actual dist/ directories - name: Compare the expected and actual dist/ directories
run: | run: |
if [ "$(git diff dist/ | wc -l)" -gt "0" ]; then if [ "$(git diff dist/ | wc -l)" -gt "0" ]; then
@ -46,6 +52,7 @@ jobs:
exit 1 exit 1
fi fi
id: diff_dist id: diff_dist
- name: Upload the expected version of dist/ in case of failure - name: Upload the expected version of dist/ in case of failure
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff_dist.conclusion == 'failure' }} if: ${{ failure() && steps.diff_dist.conclusion == 'failure' }}

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

1007
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -36,15 +36,15 @@
"devDependencies": { "devDependencies": {
"@types/folder-hash": "^4.0.2", "@types/folder-hash": "^4.0.2",
"@types/jest": "^29.5.1", "@types/jest": "^29.5.1",
"@types/node": "^18.11.18", "@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^5.53.0", "@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^5.53.0", "@typescript-eslint/parser": "^7.3.1",
"@vercel/ncc": "^0.36.1", "@vercel/ncc": "^0.38.1",
"eslint": "^8.34.0", "eslint": "^8.57.0",
"eslint-config-prettier": "^8.6.0", "eslint-config-prettier": "^9.1.0",
"jest": "^29.5.0", "jest": "^29.5.0",
"prettier": "^2.8.4", "prettier": "^3.2.5",
"ts-jest": "^29.1.0", "ts-jest": "^29.1.0",
"typescript": "^4.9.5" "typescript": "^5.4.2"
} }
} }

View file

@ -156,7 +156,7 @@ async function run(): Promise<void> {
const cache = new RustdocCache( const cache = new RustdocCache(
cargo, cargo,
path.join(CARGO_TARGET_DIR, "semver-checks", "cache"), path.join(CARGO_TARGET_DIR, "semver-checks", "cache"),
manifestDir manifestDir,
); );
await cache.restore(); await cache.restore();