Change get-function to describe-function cloudfront function workflow #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |