From 30098dc16d05b0505d2eb7b27e2bb14590e61df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Javier=20Mart=C3=ADnez=20P=C3=A1ez?= Date: Fri, 15 Mar 2024 12:28:25 +0100 Subject: [PATCH 1/3] chore: upgrade actions --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d1668fe..2db64f09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18.17.0 cache: 'npm' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b94799e..bcaec613 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,8 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18.17.0 cache: 'npm' From f46e3451889b50821597531072434f6fadca823e Mon Sep 17 00:00:00 2001 From: Manumartin95 Date: Mon, 18 Mar 2024 10:17:01 +0100 Subject: [PATCH 2/3] fix: test issue with dates --- .../activity/ui/hooks/use-get-selected-calendar-date.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/binnacle/features/activity/ui/hooks/use-get-selected-calendar-date.test.ts b/src/features/binnacle/features/activity/ui/hooks/use-get-selected-calendar-date.test.ts index 37036d9a..56e49779 100644 --- a/src/features/binnacle/features/activity/ui/hooks/use-get-selected-calendar-date.test.ts +++ b/src/features/binnacle/features/activity/ui/hooks/use-get-selected-calendar-date.test.ts @@ -13,7 +13,7 @@ describe('useGetSelectedCalendarDate', () => { }) it('should return the last month of the selected year', () => { - const pastDate = new Date(2020, 6, 1) // Jun 1, 2020 + const pastDate = new Date(new Date().getFullYear() - 1, 6, 1) // Jun 1, 2020 const { result } = renderHook(() => useGetSelectedCalendarDate(pastDate)) @@ -22,7 +22,7 @@ describe('useGetSelectedCalendarDate', () => { }) it('should return the first month of the selected year', () => { - const nextDate = new Date(2024, 7, 2) // July 2, 2024 + const nextDate = new Date(new Date().getFullYear() + 1, 7, 2) // July 2, 2024 const { result } = renderHook(() => useGetSelectedCalendarDate(nextDate)) From 6e5f5f7cba2dba5c5058949e6e4bf37ffdffe80a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Javier=20Mart=C3=ADnez=20P=C3=A1ez?= Date: Fri, 15 Mar 2024 12:28:25 +0100 Subject: [PATCH 3/3] chore: upgrade actions --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d1668fe..2db64f09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18.17.0 cache: 'npm' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b94799e..bcaec613 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,8 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18.17.0 cache: 'npm'