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 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 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