From 7b23ad17dfff8ec6db676e233a504544a5d25c79 Mon Sep 17 00:00:00 2001 From: Zac Clifton <43915749+Cliftonz@users.noreply.github.com> Date: Tue, 28 May 2024 12:57:00 +0200 Subject: [PATCH] ci(root): Run CSpell only on web app (#5639) * Have CSpell only run on web app * Remove team member check in test workflow The code previously checked whether the PR creator was a team member and skipped the spell check if so. We've now removed this check. As a result, the spell check will run for every PR regardless of who the creator is. --- .github/workflows/test.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ccdc898c70..f71b6a81b19 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,24 +24,12 @@ jobs: environment: Linting steps: - uses: actions/checkout@v3 - - name: List team members ad check - id: check-user - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - run: | - members=$(gh api --paginate "organizations/77433905/team/5565599/members" | jq -r '.[] | .login') - echo "Team members: $members" - if [[ $members == *"$PR_CREATOR"* ]]; then - echo "PR creator is a member of the team." - echo "SKIP_STEP=true" >> $GITHUB_ENV - else - echo "PR creator is not a team member." - echo "SKIP_STEP=false" >> $GITHUB_ENV - fi - - name: Run Spell Check - if: env.SKIP_STEP == 'false' - uses: streetsidesoftware/cspell-action@v5 + uses: streetsidesoftware/cspell-action@v6 + with: + root: 'apps/web' + files: '**/*' + incremental_files_only: true find-flags: runs-on: ubuntu-latest