Validate urls in source code #41
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: Validate urls in source code | |
env: | |
YARN_ENABLE_HARDENED_MODE: 0 | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/detect-broken-urls-nightly.yml | |
- packages/react-native-reanimated/scripts/validate-urls.js | |
schedule: | |
- cron: "37 19 * * *" | |
workflow_dispatch: | |
jobs: | |
run: | |
if: github.repository == 'software-mansion/react-native-reanimated' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install monorepo node dependencies | |
run: yarn install | |
- name: Install Reanimated node dependencies | |
working-directory: packages/react-native-reanimated | |
run: yarn install | |
- name: Install node-fetch 2 | |
working-directory: packages/react-native-reanimated | |
run: yarn add node-fetch@2 | |
- name: Validate urls | |
working-directory: packages/react-native-reanimated | |
run: node scripts/validate-urls.js |