From 4bbe0865e61170468425b2f5a3e4ba5825830ef5 Mon Sep 17 00:00:00 2001 From: Alexandre Philibeaux Date: Thu, 21 Apr 2022 09:33:53 +0000 Subject: [PATCH] ci(node): upgrade to node 18 --- .github/workflows/ci.yml | 8 +++---- .github/workflows/pull_request_title.yml | 2 +- packages/use-gtm/README.md | 2 +- .../__snapshots__/formatDate.ts.snap | 24 +++++++++---------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13e7339f7..4615089e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3.4.1 with: - node-version: 17 + node-version: 18 check-latest: true cache: 'pnpm' - run: pnpm install @@ -25,7 +25,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3.4.1 with: - node-version: 17 + node-version: 18 check-latest: true cache: 'pnpm' - run: pnpm install @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - node: [ '14', '16', '17' ] + node: ['18' ] steps: - uses: actions/checkout@v3.0.2 - uses: pnpm/action-setup@v2.2.2 @@ -70,7 +70,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3.4.1 with: - node-version: 17 + node-version: 18 check-latest: true - run: pnpm install - run: pnpm run build diff --git a/.github/workflows/pull_request_title.yml b/.github/workflows/pull_request_title.yml index 14fe784ca..f978fbed2 100644 --- a/.github/workflows/pull_request_title.yml +++ b/.github/workflows/pull_request_title.yml @@ -13,7 +13,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3.4.1 with: - node-version: 17 + node-version: 18 check-latest: true cache: 'pnpm' - run: pnpm install diff --git a/packages/use-gtm/README.md b/packages/use-gtm/README.md index c76db3eb8..7a272778a 100644 --- a/packages/use-gtm/README.md +++ b/packages/use-gtm/README.md @@ -43,7 +43,7 @@ const events = { event: 'sampleEvent', hello: message, }) - } + }, } const Page = () => { diff --git a/packages/use-i18n/src/__tests__/__snapshots__/formatDate.ts.snap b/packages/use-i18n/src/__tests__/__snapshots__/formatDate.ts.snap index f349b5188..ee26210ee 100644 --- a/packages/use-i18n/src/__tests__/__snapshots__/formatDate.ts.snap +++ b/packages/use-i18n/src/__tests__/__snapshots__/formatDate.ts.snap @@ -24,11 +24,11 @@ exports[`formatDate should work with custom format and locale es 2`] = `"jueves, exports[`formatDate should work with custom format and locale es 3`] = `"jueves, 13 F 20 d. C., 15:28:00 (tiempo universal coordinado)"`; -exports[`formatDate should work with custom format and locale fr 1`] = `"jeudi 13 F 20 ap. J.-C., 16:28:00 temps universel coordonné"`; +exports[`formatDate should work with custom format and locale fr 1`] = `"jeudi 13 F 20 ap. J.-C. 16:28:00 temps universel coordonné"`; -exports[`formatDate should work with custom format and locale fr 2`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 temps universel coordonné"`; +exports[`formatDate should work with custom format and locale fr 2`] = `"jeudi 13 F 20 ap. J.-C. 15:28:00 temps universel coordonné"`; -exports[`formatDate should work with custom format and locale fr 3`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 temps universel coordonné"`; +exports[`formatDate should work with custom format and locale fr 3`] = `"jeudi 13 F 20 ap. J.-C. 15:28:00 temps universel coordonné"`; exports[`formatDate should work with custom format and locale ro 1`] = `"joi, 13 F 20 d.Hr., 16:28:00 Timpul universal coordonat"`; @@ -36,33 +36,33 @@ exports[`formatDate should work with custom format and locale ro 2`] = `"joi, 13 exports[`formatDate should work with custom format and locale ro 3`] = `"joi, 13 F 20 d.Hr., 15:28:00 Timpul universal coordonat"`; -exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "de" 1`] = `"13. Februar 2020, 15:28"`; +exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "de" 1`] = `"13. Februar 2020 um 15:28"`; -exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "en" 1`] = `"February 13, 2020, 3:28 PM"`; +exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "en" 1`] = `"February 13, 2020 at 3:28 PM"`; exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "es" 1`] = `"13 de febrero de 2020, 15:28"`; -exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "fr" 1`] = `"13 février 2020, 15:28"`; +exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "fr" 1`] = `"13 février 2020 à 15:28"`; exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "ro" 1`] = `"13 februarie 2020, 15:28"`; -exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "de" 1`] = `"13. Februar 2020, 15:28"`; +exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "de" 1`] = `"13. Februar 2020 um 15:28"`; -exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "en" 1`] = `"February 13, 2020, 3:28 PM"`; +exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "en" 1`] = `"February 13, 2020 at 3:28 PM"`; exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "es" 1`] = `"13 de febrero de 2020, 15:28"`; -exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "fr" 1`] = `"13 février 2020, 15:28"`; +exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "fr" 1`] = `"13 février 2020 à 15:28"`; exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "ro" 1`] = `"13 februarie 2020, 15:28"`; -exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "de" 1`] = `"13. Februar 2020, 16:28"`; +exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "de" 1`] = `"13. Februar 2020 um 16:28"`; -exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "en" 1`] = `"February 13, 2020, 4:28 PM"`; +exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "en" 1`] = `"February 13, 2020 at 4:28 PM"`; exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "es" 1`] = `"13 de febrero de 2020, 16:28"`; -exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "fr" 1`] = `"13 février 2020, 16:28"`; +exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "fr" 1`] = `"13 février 2020 à 16:28"`; exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "ro" 1`] = `"13 februarie 2020, 16:28"`;