From 3d3c43111243e49d4fbf99b5e67f1e8519e3d7ed Mon Sep 17 00:00:00 2001 From: flakey5 <73616808+flakey5@users.noreply.github.com> Date: Wed, 10 Apr 2024 21:11:47 -0700 Subject: [PATCH] actions: use node v20 (#113) Co-authored-by: Moshe Atlow --- .github/workflows/format.yml | 11 ++++------- .github/workflows/test.yml | 22 ++++++++-------------- 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index b9ca69e..5b00e2b 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -20,14 +20,11 @@ jobs: - name: Git Checkout uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - - name: Cache Dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + - name: Setup Node + uses: actions/setup-node@v4 with: - path: | - ~/.npm - node_modules/.cache - key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/format.yml') }} - restore-keys: ${{ runner.os }}-npm- + node-version: lts/* + cache: 'npm' - name: Install Dependencies run: npm install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 196b134..8f750ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,14 +20,11 @@ jobs: - name: Git Checkout uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - - name: Cache Dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + - name: Setup Node + uses: actions/setup-node@v4 with: - path: | - ~/.npm - node_modules/.cache - key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/format.yml') }} - restore-keys: ${{ runner.os }}-npm- + node-version: lts/* + cache: 'npm' - name: Install dependencies run: npm install @@ -43,14 +40,11 @@ jobs: - name: Git Checkout uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - - name: Cache Dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + - name: Setup Node + uses: actions/setup-node@v4 with: - path: | - ~/.npm - node_modules/.cache - key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/format.yml') }} - restore-keys: ${{ runner.os }}-npm- + node-version: lts/* + cache: 'npm' - name: Install dependencies run: npm install