From ef5af9c7f5f0ae0afafb00906a74c4aa517ad3df Mon Sep 17 00:00:00 2001 From: Eddie Jaoude Date: Mon, 10 Jun 2024 18:43:05 +0100 Subject: [PATCH] feat: archiving project redirect to user's github profile (#10386) * feat: archiving project redirect to github profile * fix: tests are no longer required * fix: display home page * fix: remove header + footer --- .github/workflows/build.yml | 50 +++++++-------- components/layouts/MultiLayout.js | 4 -- middleware.js | 100 ++---------------------------- 3 files changed, 29 insertions(+), 125 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1860717415..8c623ba3df9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,28 +34,28 @@ jobs: - name: run ${{ matrix.step }} run: npm run ${{ matrix.step }} - tests: - needs: build - runs-on: ubuntu-latest - services: - mongo: - image: mongo - ports: - - 27017:27017 - strategy: - fail-fast: false - matrix: - shardIndex: [1, 2, 3, 4, 5] - shardTotal: [5] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: "18" - cache: "npm" - - name: install dependencies - run: npm ci - - name: Install Playwright's dependencies - run: npx playwright install chromium - - name: run tests - run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} + # tests: + # needs: build + # runs-on: ubuntu-latest + # services: + # mongo: + # image: mongo + # ports: + # - 27017:27017 + # strategy: + # fail-fast: false + # matrix: + # shardIndex: [1, 2, 3, 4, 5] + # shardTotal: [5] + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-node@v4 + # with: + # node-version: "18" + # cache: "npm" + # - name: install dependencies + # run: npm ci + # - name: Install Playwright's dependencies + # run: npx playwright install chromium + # - name: run tests + # run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} diff --git a/components/layouts/MultiLayout.js b/components/layouts/MultiLayout.js index bbc9ebba071..aa0bc125fa6 100644 --- a/components/layouts/MultiLayout.js +++ b/components/layouts/MultiLayout.js @@ -1,5 +1,3 @@ -import Navbar from "@components/navbar/Navbar"; -import Footer from "@components/Footer"; import SkipLink from "@components/SkipLink"; import Alert from "./Alert"; @@ -11,13 +9,11 @@ export default function MultiLayout({ settings, children }) { {(!settings || !settings.hideNavbar) && ( <> - )}
{children}
- {(!settings || !settings.hideFooter) &&