deps: bump typescript from 6.0.2 to 6.0.3 in /samples/react/login-pkce #78
Workflow file for this run
This file contains hidden or 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: Test JS Frameworks | |
| on: | |
| push: | |
| paths: | |
| - "samples/**" | |
| pull_request: | |
| paths: | |
| - "samples/**" | |
| schedule: | |
| - cron: "0 8 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| find-projects: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.find.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: find | |
| run: | | |
| DIRS=$(find samples -name "package.json" -not -path "*/node_modules/*" -exec dirname {} \; 2>/dev/null | sort | jq -R -s -c 'split("\n") | map(select(. != ""))') | |
| echo "matrix=$DIRS" >> "$GITHUB_OUTPUT" | |
| test: | |
| needs: find-projects | |
| if: ${{ needs.find-projects.outputs.matrix != '[]' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| project: ${{ fromJson(needs.find-projects.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| working-directory: ${{ matrix.project }} | |
| run: yarn install --immutable | |
| - name: Check formatting | |
| working-directory: ${{ matrix.project }} | |
| run: | | |
| if node -e "process.exit(require('./package.json').scripts?.['format:check'] ? 0 : 1)"; then | |
| yarn format:check | |
| fi | |
| - name: Build | |
| working-directory: ${{ matrix.project }} | |
| run: | | |
| if node -e "process.exit(require('./package.json').scripts?.['build:ci'] ? 0 : 1)"; then | |
| yarn build:ci | |
| else | |
| yarn build | |
| fi | |
| - name: Test | |
| working-directory: ${{ matrix.project }} | |
| run: | | |
| if node -e "process.exit(require('./package.json').scripts?.['test:ci'] ? 0 : 1)"; then | |
| yarn test:ci | |
| elif node -e "process.exit(require('./package.json').scripts?.test ? 0 : 1)"; then | |
| yarn test | |
| fi |