Skip to content

refactor: Fixture enhancement for capture network monitor for all pages #4

refactor: Fixture enhancement for capture network monitor for all pages

refactor: Fixture enhancement for capture network monitor for all pages #4

Workflow file for this run

name: Code Analysis
on:
workflow_dispatch:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
jobs:
code-analysis:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Test Repo
uses: actions/checkout@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: PreTest - ESLint & TS Compile
run: npm run pretest
- name: Fix ESLint Issues
if: ${{ github.event_name == 'pull_request' && always()}}
run: npx eslint . --fix
- name: Configure Git
if: ${{ github.event_name == 'pull_request' && always()}}
run: |
git config --local user.email "rolevault+github-actions@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Commit ESLint fixes
if: ${{ github.event_name == 'pull_request' && always()}}
run: |
git add .
if ! git diff --staged --quiet; then
git commit -m "Auto-fix ESLint issues"
git push
else
echo "No ESLint fixes needed"
fi