From 1b7364f33ba8ead50acdc974e8a1a7fe096e1716 Mon Sep 17 00:00:00 2001 From: Maximilian Antoni Date: Sat, 23 Dec 2023 14:42:05 +0100 Subject: [PATCH] Upgrade GitHub actions --- .github/workflows/test.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c37c77b..e25feb60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,24 +12,19 @@ jobs: build: runs-on: ubuntu-latest timeout-minutes: 5 + strategy: matrix: node-version: ['16.x', '18.x', '20.x'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - name: Cache modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'npm' - name: Install run: npm ci - name: Lint