mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-06 05:02:22 -05:00
Bumps the github-actions group with 1 update: [pnpm/action-setup](https://github.com/pnpm/action-setup). Updates `pnpm/action-setup` from 3.0.0 to 4.0.0 - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v3.0.0...v4.0.0) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
build:
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.platform }}-${{ matrix.node }}
|
|
cancel-in-progress: true
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node:
|
|
- '18.12'
|
|
- '20'
|
|
- '21'
|
|
platform:
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
|
|
name: '${{matrix.platform}} / Node.js ${{ matrix.node }}'
|
|
runs-on: ${{matrix.platform}}
|
|
|
|
steps:
|
|
- name: Configure Git
|
|
run: |
|
|
git config --global core.autocrlf false
|
|
git config --global user.name "xyz"
|
|
git config --global user.email "x@y.z"
|
|
- name: Checkout Commit
|
|
uses: actions/checkout@v4
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4.0.0
|
|
with:
|
|
version: next-9
|
|
standalone: true
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: 'pnpm'
|
|
- name: Install npm@7
|
|
run: npm add --global npm@7
|
|
- name: pnpm install
|
|
run: pnpm install
|
|
- name: Audit
|
|
run: pnpm audit
|
|
# - name: Cache TypeScript and Jest
|
|
# uses: actions/cache@v3
|
|
# with:
|
|
# path: |
|
|
# packages/*/lib
|
|
# packages/*/tsconfig.tsbuildinfo
|
|
# privatePackages/*/lib
|
|
# privatePackages/*/tsconfig.tsbuildinfo
|
|
# .jest-cache
|
|
# .verdaccio-cache
|
|
# key: ts-jest-${{ matrix.platform }}-${{ matrix.node }}-${{ github.run_id }}
|
|
# restore-keys: ts-jest-${{ matrix.platform }}-${{ matrix.node }}-
|
|
- name: run tests (main)
|
|
timeout-minutes: 60
|
|
if: github.ref == 'refs/heads/main'
|
|
run: pnpm run test-main
|
|
env:
|
|
PNPM_WORKERS: 3
|
|
- name: run tests (branch)
|
|
timeout-minutes: 60
|
|
if: github.ref != 'refs/heads/main'
|
|
run: pnpm run test-branch
|
|
env:
|
|
PNPM_WORKERS: 3
|