From dfe50fd7f144b989d39485cb37e6bd0ca0a2c987 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 20 Jul 2023 21:44:19 +0200 Subject: [PATCH] ci: update to `actions/setup-node@v3` + remove unnecessary cache action --- .github/workflows/CI.yml | 44 +++++++++------------------------------- 1 file changed, 10 insertions(+), 34 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3fceb3f..881c719 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,26 +11,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use Node.js ${{matrix.node-version}} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{matrix.node-version}} - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build run: COVERAGE=1 npm run all - name: Upload coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 Build-Nodes: runs-on: ${{ matrix.os }} @@ -41,20 +33,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use Node.js ${{matrix.node-version}} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{matrix.node-version}} - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build @@ -69,20 +53,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use Node.js ${{matrix.node-version}} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{matrix.node-version}} - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS}}-node- - ${{ runner.OS }}- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build