chore: update packageManager field to [email protected] #1164
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: Test and lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
merge_group: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Reconfigure git to not use auth in URLs | |
run: > | |
git config --global url."https://github.com/".insteadOf | |
[email protected]: | |
- name: Enable corepack | |
run: | | |
corepack enable | |
- name: Set up Node.js | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
env: | |
COREPACK_ENABLE_STRICT: false | |
with: | |
cache-dependency-path: pnpm-lock.yaml | |
node-version-file: "package.json" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build generated libraries | |
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0 | |
with: | |
max_attempts: 5 | |
timeout_minutes: 5 | |
command: pnpm gen | |
retry_on: error | |
- name: Run tests | |
run: pnpm test | |
- name: Run linter | |
run: pnpm lint . | |
- name: Run prettier | |
run: pnpm prettier --check . |