Skip to content

Add dummy variable to test if workflow works #8

Add dummy variable to test if workflow works

Add dummy variable to test if workflow works #8

name: Check IG Links Workflow
on:
push:
jobs:
check-ig-links:
name: Check IG Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16
- name: Create package.json
run: |
echo '{}' > package.json
- name: Install Playwright
run: |
npm install @playwright/test # Install Playwright
npx playwright install --with-deps
- name: Run Playwright link checks
run: node checkIgLinks.js
- name: Report results
if: failure() # This step will only run if the previous step fails
run: |
echo "One or more links cannot be resolved. View 'Run Playwright link checks' log above for details."
exit 1