Bump the all-dependencies group across 1 directory with 8 updates #453
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: Code Quality | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify: | |
| name: Verify package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: .node-version | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Run quality checks | |
| run: npm run check | |
| - name: Verify the packed package in a consumer project | |
| run: | | |
| npm pack --pack-destination "$RUNNER_TEMP" | |
| consumer_dir="$RUNNER_TEMP/validate-env-vars-consumer" | |
| mkdir "$consumer_dir" | |
| ( | |
| cd "$consumer_dir" | |
| npm init --yes | |
| npm install --ignore-scripts "$RUNNER_TEMP"/validate-env-vars-*.tgz zod | |
| node --input-type=module --eval "import validateEnvVars from 'validate-env-vars'; import { z } from 'zod'; import * as zodMini from 'zod/mini'; process.env.VALIDATE_ENV_VARS_CONSUMER_TEST = 'valid'; validateEnvVars({ schema: z.object({ VALIDATE_ENV_VARS_CONSUMER_TEST: z.literal('valid') }) }); validateEnvVars({ schema: zodMini.object({ VALIDATE_ENV_VARS_CONSUMER_TEST: zodMini.literal('valid') }) });" | |
| ) |