From 5ff11595d7094bac50b38f56e02b9ddbbf89a836 Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Fri, 2 Feb 2024 20:18:59 +0000 Subject: [PATCH] :wrench: upgrade deprecated github actions --- .github/actions/setup/action.yml | 4 ++-- .github/workflows/build.yml | 14 +++++++------- .github/workflows/check.yml | 10 +++++----- .github/workflows/codeql.yml | 6 +++--- .github/workflows/e2e-test.yml | 10 +++++----- .github/workflows/electron-master.yml | 4 ++-- .github/workflows/electron-pr.yml | 4 ++-- .github/workflows/issues-feature-implemented.yml | 4 ++-- .github/workflows/release-notes.yml | 2 +- 9 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index fbf55830d6a..78e0bd4c4fc 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -4,11 +4,11 @@ runs: using: composite steps: - name: Install node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.16.0 - name: Cache - uses: actions/cache@v3 + uses: actions/cache@v4 id: cache with: path: '**/node_modules' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6636d56d741..ea0ba68a4e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: api: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Build API @@ -29,7 +29,7 @@ jobs: - name: Create package tgz run: cd packages/api && yarn pack && mv package.tgz actual-api.tgz - name: Upload Build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: actual-api path: packages/api/actual-api.tgz @@ -37,7 +37,7 @@ jobs: crdt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Build CRDT @@ -45,7 +45,7 @@ jobs: - name: Create package tgz run: cd packages/crdt && yarn pack && mv package.tgz actual-crdt.tgz - name: Upload Build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: actual-crdt path: packages/crdt/actual-crdt.tgz @@ -53,18 +53,18 @@ jobs: web: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Build Web run: ./bin/package-browser - name: Upload Build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: actual-web path: packages/desktop-client/build - name: Upload Build Stats - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-stats path: packages/desktop-client/build-stats diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f10284c1d8e..d2cee1445af 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -14,7 +14,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Lint @@ -22,7 +22,7 @@ jobs: typecheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Typecheck @@ -30,7 +30,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Test @@ -40,8 +40,8 @@ jobs: if: github.event_name == 'pull_request' 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: '19' - name: Check migrations diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index efb3ea85c2e..20780a56257 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -22,14 +22,14 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: javascript - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: '/language:javascript' diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index c55cd17adf9..be9acef5837 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -16,7 +16,7 @@ jobs: outputs: netlify_url: ${{ steps.netlify.outputs.url }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Wait for Netlify build to finish @@ -33,14 +33,14 @@ jobs: container: image: mcr.microsoft.com/playwright:v1.41.1-jammy steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Run E2E Tests on Netlify URL run: yarn e2e env: E2E_START_URL: ${{ needs.netlify.outputs.netlify_url }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: desktop-client-test-results @@ -53,14 +53,14 @@ jobs: container: image: mcr.microsoft.com/playwright:v1.41.1-jammy steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup - name: Run VRT Tests on Netlify URL run: yarn vrt env: E2E_START_URL: ${{ needs.netlify.outputs.netlify_url }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: desktop-client-test-results diff --git a/.github/workflows/electron-master.yml b/.github/workflows/electron-master.yml index 0fe0dd17025..fc0a57f3a6f 100644 --- a/.github/workflows/electron-master.yml +++ b/.github/workflows/electron-master.yml @@ -26,7 +26,7 @@ jobs: - macos-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - if: ${{ startsWith(matrix.os, 'windows') }} run: pip.exe install setuptools - if: ${{ ! startsWith(matrix.os, 'windows') }} @@ -41,7 +41,7 @@ jobs: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} - name: Upload Build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: actual-electron-${{ matrix.os }} path: | diff --git a/.github/workflows/electron-pr.yml b/.github/workflows/electron-pr.yml index 8a5f2a98682..58e1eda7c4f 100644 --- a/.github/workflows/electron-pr.yml +++ b/.github/workflows/electron-pr.yml @@ -24,7 +24,7 @@ jobs: - macos-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - if: ${{ startsWith(matrix.os, 'windows') }} run: pip.exe install setuptools - if: ${{ ! startsWith(matrix.os, 'windows') }} @@ -34,7 +34,7 @@ jobs: - name: Build Electron run: ./bin/package-electron - name: Upload Build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: actual-electron-${{ matrix.os }} path: | diff --git a/.github/workflows/issues-feature-implemented.yml b/.github/workflows/issues-feature-implemented.yml index 4c8bf1ea7f2..a7ab00ade48 100644 --- a/.github/workflows/issues-feature-implemented.yml +++ b/.github/workflows/issues-feature-implemented.yml @@ -24,8 +24,8 @@ jobs: runs-on: ubuntu-latest steps: # This is not a security concern because we have approved & merged the PR - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: '19' - name: Handle feature requests diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 4a5bd4c22c1..53d744265a8 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check release notes if: startsWith(github.head_ref, 'release/') == false uses: actualbudget/actions/release-notes/check@main