From 7e0dbab5453de26e47fa57894ebeb51ac9354dc4 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 12 Apr 2023 14:44:58 +0200 Subject: [PATCH] Update GitHub Actions - jump to latest version - remove deprecated Ubuntu 18.04 and use Ubuntu 20.04 instead, see https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/ - run tests against Node 18 (as AWS Lambda supports it now) --- .github/workflows/dependabot-automerge.yml | 2 +- .github/workflows/npmpublish.yml | 6 +-- .github/workflows/tests.yml | 21 +++++----- package-lock.json | 47 ++++++++++++---------- 4 files changed, 40 insertions(+), 36 deletions(-) diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index be36566ae..6a6130569 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1.3.1 + uses: dependabot/fetch-metadata@v1.3.6 with: github-token: '${{ secrets.GITHUB_TOKEN }}' - name: Approve and merge minor updates diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 41cb55053..27c18dbcf 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -9,10 +9,10 @@ jobs: publish-npm: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm test diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3329b8316..912d67bfe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,21 +19,22 @@ jobs: matrix: os: - windows-latest - - ubuntu-18.04 + - ubuntu-20.04 node: - "10" - "12" - "14" - "16" + - "18" steps: - name: "Checkout" - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 - name: "Install Node.js" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: "${{ matrix.node }}" @@ -51,14 +52,14 @@ jobs: steps: - name: "Checkout" - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 - name: "Install Node.js" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: "12" + node-version: "16" - name: "Install dependencies" run: npm ci @@ -84,12 +85,12 @@ jobs: steps: - name: "Checkout" - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 - name: "Install Node.js" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: "${{ matrix.node }}" @@ -115,12 +116,12 @@ jobs: steps: - name: "Checkout" - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 - name: "Install Node.js" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: "${{ matrix.node }}" diff --git a/package-lock.json b/package-lock.json index c59151cb6..61483806c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3053,9 +3053,9 @@ } }, "node_modules/aws-sdk": { - "version": "2.1343.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1343.0.tgz", - "integrity": "sha512-p9+bgEeD2HxFMLAl5IyqvxfmFzuzSwyvoKfEaGL3+0Vndztv7TvCbHfKNH6olY9DjyLrq9f34fJ98owGD8sHnQ==", + "version": "2.1356.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1356.0.tgz", + "integrity": "sha512-At7/tPJrAxlSIuyv/KpjgoNZSVp4y6nmrfcf89xe4KTR3+SRXnX4X0646bkCyU58jjSguqPjSJopsAFK16jdjg==", "dev": true, "dependencies": { "buffer": "4.9.2", @@ -3067,7 +3067,7 @@ "url": "0.10.3", "util": "^0.12.4", "uuid": "8.0.0", - "xml2js": "0.4.19" + "xml2js": "0.5.0" }, "engines": { "node": ">= 10.0.0" @@ -14325,19 +14325,22 @@ "dev": true }, "node_modules/xml2js": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz", - "integrity": "sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", "dev": true, "dependencies": { "sax": ">=0.6.0", - "xmlbuilder": "~9.0.1" + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" } }, "node_modules/xmlbuilder": { - "version": "9.0.7", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", - "integrity": "sha512-7YXTQc3P2l9+0rjaUbLwMKRhtmwg1M1eDf6nag7urC7pIPYLD9W/jmzQ4ptRSUbodw5S0jfoGTflLemQibSpeQ==", + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", "dev": true, "engines": { "node": ">=4.0" @@ -16927,9 +16930,9 @@ "dev": true }, "aws-sdk": { - "version": "2.1343.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1343.0.tgz", - "integrity": "sha512-p9+bgEeD2HxFMLAl5IyqvxfmFzuzSwyvoKfEaGL3+0Vndztv7TvCbHfKNH6olY9DjyLrq9f34fJ98owGD8sHnQ==", + "version": "2.1356.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1356.0.tgz", + "integrity": "sha512-At7/tPJrAxlSIuyv/KpjgoNZSVp4y6nmrfcf89xe4KTR3+SRXnX4X0646bkCyU58jjSguqPjSJopsAFK16jdjg==", "dev": true, "requires": { "buffer": "4.9.2", @@ -16941,7 +16944,7 @@ "url": "0.10.3", "util": "^0.12.4", "uuid": "8.0.0", - "xml2js": "0.4.19" + "xml2js": "0.5.0" }, "dependencies": { "querystring": { @@ -25446,19 +25449,19 @@ "dev": true }, "xml2js": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz", - "integrity": "sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", "dev": true, "requires": { "sax": ">=0.6.0", - "xmlbuilder": "~9.0.1" + "xmlbuilder": "~11.0.0" } }, "xmlbuilder": { - "version": "9.0.7", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", - "integrity": "sha512-7YXTQc3P2l9+0rjaUbLwMKRhtmwg1M1eDf6nag7urC7pIPYLD9W/jmzQ4ptRSUbodw5S0jfoGTflLemQibSpeQ==", + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", "dev": true }, "xmlchars": {