Skip to content

Commit

Permalink
ci(root): Run CSpell only on web app (#5639)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Cliftonz authored and SokratisVidros committed Jun 13, 2024
1 parent d115f5b commit 7b23ad1
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b23ad1

Please sign in to comment.