From 537264cbfa55b2f5bb47f5f17cfb4d4675ea9601 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 8 Feb 2024 20:53:19 +0100 Subject: [PATCH] devops: update GHA actions --- .github/workflows/ci.yml | 20 ++++++++++---------- .github/workflows/publish.yml | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d1f690d1..bf1ba4e04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,14 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - node-version: [ 16 ] + node-version: [ 20 ] include: - os: ubuntu-latest node-version: 18 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm ci @@ -33,9 +33,9 @@ jobs: - run: npm run build - run: npm run test -- --workers=1 - run: npx vsce package - if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16' + if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20' - uses: actions/upload-artifact@v3 - if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16' + if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20' with: name: vsc-extension path: "*.vsix" @@ -50,11 +50,11 @@ jobs: env: DEBUG: pw:browser steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: npm ci - run: npx playwright install --with-deps chromium - run: npm run build @@ -66,13 +66,13 @@ jobs: - run: npx playwright test working-directory: ./tests-integration if: matrix.os != 'ubuntu-latest' - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: playwright-report-${{ matrix.os }} path: tests-integration/playwright-report/ retention-days: 30 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: failure() with: name: playwright-test-results-${{ matrix.os }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a1a9f217c..f8e7c8211 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,10 +6,10 @@ jobs: publish: 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: 16 + node-version: 20 - run: npm ci - name: Publish release if: github.event.release.prerelease == false