Skip to content

chore(deps): bump @aws-amplify/graphql-transformer-interfaces from 3.7.0 to 3.9.0 #8

chore(deps): bump @aws-amplify/graphql-transformer-interfaces from 3.7.0 to 3.9.0

chore(deps): bump @aws-amplify/graphql-transformer-interfaces from 3.7.0 to 3.9.0 #8

name: CheckPRLinks
on:
pull_request:
branches: [main]
types: [opened, synchronize]
env:
BUILD_DIR: 'client/www/next-build'
jobs:
CheckPRLinks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup Node.js 20
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install Dependencies
run: yarn
- name: Run Build
run: yarn build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Run Server
run: |
python -m http.server 3000 -d ${{ env.BUILD_DIR }} &
sleep 5
- name: Run Link Checker
id: checkLinks
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
result-encoding: string
script: |
const { checkDevLinks } = require('./tasks/link-checker.js');
return await checkDevLinks();
- name: Fail if broken links have been found
if: ${{ steps.checkLinks.outputs.result }}
run: exit 1