From 93f084bd6ada451050b27aa9da75df54f91f0d62 Mon Sep 17 00:00:00 2001 From: Anusuya-murugiah <133192318+Anusuya-murugiah@users.noreply.github.com> Date: Mon, 7 Apr 2025 15:24:16 +0530 Subject: [PATCH 1/4] Create .env.local --- .env.local | 1 + 1 file changed, 1 insertion(+) create mode 100644 .env.local diff --git a/.env.local b/.env.local new file mode 100644 index 0000000..776c766 --- /dev/null +++ b/.env.local @@ -0,0 +1 @@ +FLAGSMITH_KEY=ser.LcTZxQgaRiAspBVAtjmgPB From b1d21b04a9354fa064319e4c3008dc578d57d120 Mon Sep 17 00:00:00 2001 From: Anusuya-murugiah <133192318+Anusuya-murugiah@users.noreply.github.com> Date: Mon, 7 Apr 2025 17:49:07 +0530 Subject: [PATCH 2/4] Update CODEOWNERS --- .github/CODEOWNERS | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index aaa395a..b41a0d5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,5 @@ -* @alialaa -*.js @alialaa -*.ts @alialaa -*.tsx @alialaa -/e2e/ @alialaa17 \ No newline at end of file +* @anusuya-murugiah +*.js @anusuya-murugiah +*.ts @anusuya-murugiah +*.tsx @anusuya-murugiah +/e2e/ @anusuya-murugan From 8835254770e5575b389bbdae62f7e5a641e1c927 Mon Sep 17 00:00:00 2001 From: Anusuya-murugiah <133192318+Anusuya-murugiah@users.noreply.github.com> Date: Tue, 8 Apr 2025 12:15:14 +0530 Subject: [PATCH 3/4] Update test.yaml --- .github/workflows/test.yaml | 52 ++++++------------------------------- 1 file changed, 8 insertions(+), 44 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a627fae..49f4b82 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,25 +1,24 @@ name: Test -on: - workflow_call: +on: workflow_call jobs: - test-and-build: + Test-and-build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup Node Environment + - name: setup the nodes uses: actions/setup-node@v3 with: node-version: 18 cache: "npm" - name: Install Dependencies run: npm ci - - name: Check for Formatting Errors + - name: check for formatting run: npm run format - - name: Check for ESLint Errors + - name: check for ESLint errors run: npm run lint - - name: Check for Type Errors + - name: check for type error run: npm run typecheck - name: Build Project run: npm run build @@ -27,32 +26,16 @@ jobs: with: name: build path: .next/ - - name: Run Unit Tests + - name: run unit tests run: npm run test - uses: actions/upload-artifact@v3 if: always() with: name: coverage path: coverage/ - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - name: Store Playwright's Version - run: | - PLAYWRIGHT_VERSION=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//') - echo "Playwright's Version: $PLAYWRIGHT_VERSION" - echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV - - name: Cache Playwright Browsers - uses: actions/cache@v3 - id: cache-playwright - with: - path: ~/.cache/ms-playwright - key: playwright-browsers-${{ env.PLAYWRIGHT_VERSION }} - name: Install Playwright Browsers - if: steps.cache-playwright.outputs.cache-hit != 'true' run: npx playwright install --with-deps - - name: Run E2E Tests + - name: run E2E Test run: npm run test:e2e env: FLAGSMITH_KEY: ${{ secrets.FLAGSMITH_KEY }} @@ -61,22 +44,3 @@ jobs: with: name: playwright-report path: playwright-report/ - - name: Send a Slack Message on Failure - uses: slackapi/slack-github-action@v1.24.0 - if: failure() - with: - payload: | - { - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "🛑 ** failed." - } - } - ] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK From 31c62136a357cb80910e97c70112e4897bc8e607 Mon Sep 17 00:00:00 2001 From: Anusuya-murugiah <133192318+Anusuya-murugiah@users.noreply.github.com> Date: Tue, 8 Apr 2025 12:39:21 +0530 Subject: [PATCH 4/4] Update test.yaml