Skip to content

Shop page tests: add assertions to check url after clicking on a facet #1658

Shop page tests: add assertions to check url after clicking on a facet

Shop page tests: add assertions to check url after clicking on a facet #1658

Workflow file for this run

name: ESlint
on:
push:
branches-ignore:
- 'main'
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTION_PAT }}
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup and cache pnpm
uses: ./.github/actions/pnpm-setup
- name: Install workspaces
env:
FONT_AWESOME_NPM_TOKEN: ${{ secrets.FONT_AWESOME_NPM_TOKEN }}
run: pnpm install
- name: Run ESlint
run: cd frontend && pnpm lint --fix
- name: Detect diff
id: detect-diff
run: |
if [ ! -z "$(git status --short)" ]; then
echo "HAS_DIFF=true" >> $GITHUB_OUTPUT
else
echo "HAS_DIFF=false" >> $GITHUB_OUTPUT
fi
- name: Fail if Dependabot
if: steps.detect-diff.outputs.HAS_DIFF == 'true' && github.actor == 'dependabot[bot]'
run: exit 1
- name: Commit changes
if: steps.detect-diff.outputs.HAS_DIFF == 'true'
run: |
git fetch --depth=1 origin "$GITHUB_REF_NAME"
git stash
git checkout "$GITHUB_REF_NAME"
git stash pop
git config user.name "github-actions[bot]"
git config user.email "<41898282+github-actions[bot]@users.noreply.github.com>"
git add .
git commit -m "style: apply linter formatting diff"
git push