From 23749d13762fad8142d823f98fb31d3776b524db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 11:39:41 +0000 Subject: [PATCH 1/4] Bump actions/checkout from 1 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v1...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build-push-docker.yml | 2 +- .github/workflows/code-quality.yml | 6 +++--- .github/workflows/deploy-docs.yml | 4 ++-- .github/workflows/docker-build-test.yml | 2 +- .github/workflows/unit-tests.yml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-push-docker.yml b/.github/workflows/build-push-docker.yml index b5c5d9e41..e7609f266 100644 --- a/.github/workflows/build-push-docker.yml +++ b/.github/workflows/build-push-docker.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. with: persist-credentials: false diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index b56be32f4..bc8034887 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. with: persist-credentials: false - name: Setup Node.js @@ -39,7 +39,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v2.1.5 with: @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v2.1.5 with: diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index aea4f671b..c26ff34aa 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. with: persist-credentials: false @@ -55,7 +55,7 @@ jobs: steps: - name: Checkout 🛎️ - uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. with: persist-credentials: false diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index ed6ae6623..fa941d7af 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. with: persist-credentials: false - name: Setup Node.js diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 2717ff088..c40d25ce1 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. with: persist-credentials: false - name: Start SQL Docker container From 500d2ba703c6e1078b9b2e8e581690665963a37a Mon Sep 17 00:00:00 2001 From: Mykhailo <90206262+Morphenoed@users.noreply.github.com> Date: Wed, 25 Dec 2024 18:58:07 +0100 Subject: [PATCH 2/4] Update deploy-docs.yml --- .github/workflows/deploy-docs.yml | 72 ++++++++++++------------------- 1 file changed, 28 insertions(+), 44 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index c26ff34aa..bee217012 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -9,25 +9,31 @@ on: branches: - main +permissions: + contents: read + pages: write + id-token: write + jobs: - build: + build_and_deploy: name: Build Docs runs-on: ubuntu-latest steps: - name: Checkout 🛎️ - uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. - with: - persist-credentials: false + uses: actions/checkout@v3 - - name: Setup Node.js 🧱 - uses: actions/setup-node@v2.1.5 + - name: Setup Node.js + uses: actions/setup-node@v3 with: - node-version: 14.x - - - name: Install pnpm 🏃‍♀️ - run: npm i -g pnpm@latest-7 - + node-version: 20.x + + - name: Enable Corepack + run: corepack enable + + - name: Prepare pnpm using Corepack + run: corepack prepare pnpm + - name: Install node packages 📦 run: | pnpm install --frozen-lockfile @@ -38,37 +44,15 @@ jobs: working-directory: docs/ run: | pnpm build - - - name: Upload build artifact 📤 - if: github.event_name != 'pull_request' # We only need the build if we deploy it later. - uses: actions/upload-artifact@v2 - with: - name: build-folder - path: docs/build/ - retention-days: 1 # Keep the artifact for the minimal amount of time possible. - - deploy: - name: Deploy Docs - needs: build - if: success() && github.event_name != 'pull_request' # Only deploy the build if it is a push to the main branch and the build was successful. - runs-on: ubuntu-latest - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. - with: - persist-credentials: false - - - name: Download build artifact 📥 - uses: actions/download-artifact@v2 - with: - name: build-folder - path: docs/build/ - - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.0 + - name: Setup Pages + if: github.event_name != 'pull_request' + uses: actions/configure-pages@v5 + - name: Upload artifact + if: github.event_name != 'pull_request' + uses: actions/upload-pages-artifact@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages # The branch the action should deploy to. - folder: docs/build # The folder the action should deploy. The same as in "Download Build" step. - clean: true # Automatically remove deleted files from the deploy branch + path: 'docs/build' + - name: Deploy to GitHub Pages + if: github.event_name != 'pull_request' + id: deployment + uses: actions/deploy-pages@v4 From 7040e8d6f215865477f608c6d36761f8e5add707 Mon Sep 17 00:00:00 2001 From: Mykhailo <90206262+Morphenoed@users.noreply.github.com> Date: Wed, 25 Dec 2024 18:58:32 +0100 Subject: [PATCH 3/4] Delete .github/workflows/docker-build-test.yml --- .github/workflows/docker-build-test.yml | 36 ------------------------- 1 file changed, 36 deletions(-) delete mode 100644 .github/workflows/docker-build-test.yml diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml deleted file mode 100644 index fa941d7af..000000000 --- a/.github/workflows/docker-build-test.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Docker image test -on: - push: - branches: - - main - - stable - pull_request: - branches: - - main - -jobs: - test-docker-image: - name: Test Docker image - runs-on: ubuntu-latest - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@v2.1.5 - with: - node-version: 14.x - - name: Install pnpm - run: npm i -g pnpm@latest-7 - - name: Install node packages - run: | - pnpm install --frozen-lockfile - env: - CI: true - - name: Test docker image - working-directory: scripts/ - run: pnpx ts-node -- ./build-test-docker/buildAndTestDocker.ts - env: - CI: true From 7ce472776a638970d18c645931f239eb86d38137 Mon Sep 17 00:00:00 2001 From: Mykhailo <90206262+Morphenoed@users.noreply.github.com> Date: Wed, 25 Dec 2024 18:58:49 +0100 Subject: [PATCH 4/4] Update code-quality.yml --- .github/workflows/code-quality.yml | 42 +++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index bc8034887..5756b58c7 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -14,20 +14,27 @@ jobs: steps: - name: Checkout 🛎️ - uses: actions/checkout@v4 # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. with: persist-credentials: false + - name: Setup Node.js uses: actions/setup-node@v2.1.5 with: - node-version: 14.x - - name: Install pnpm - run: npm i -g pnpm@latest-7 + node-version: 20.x + + - name: Enable Corepack + run: corepack enable + + - name: Prepare pnpm using Corepack + run: corepack prepare pnpm + - name: Install node packages run: | pnpm install --frozen-lockfile env: CI: true + - name: Type check client working-directory: client/ run: pnpm ts:check @@ -39,13 +46,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v1 + - name: Setup Node.js uses: actions/setup-node@v2.1.5 with: - node-version: 14.x - - name: Install pnpm - run: npm i -g pnpm@latest-7 + node-version: 20.x + + - name: Enable Corepack + run: corepack enable + + - name: Prepare pnpm using Corepack + run: corepack prepare pnpm + - name: Install node packages run: | pnpm install --frozen-lockfile @@ -62,13 +75,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v1 - name: Setup Node.js uses: actions/setup-node@v2.1.5 with: - node-version: 14.x - - name: Install pnpm - run: npm i -g pnpm@latest-7 + node-version: 20.x + + - name: Enable Corepack + run: corepack enable + + - name: Prepare pnpm using Corepack + run: corepack prepare pnpm + - name: Install node packages run: | pnpm install --frozen-lockfile