Use one action to install both Node.js and pnpm
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Andrey Sitnik · committed by Andrey Sitnik · parent 78f4a02 · Browse files · 2 files·+10 added−22 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+10 added−22 removed
- other:+10 added−22 removed
Provenance
- Commit
e71d1e3- Tree
5122fa7- Author
Andrey Sitnik <andrey@sitnik.es>- Committer
Andrey Sitnik <andrey@sitnik.es>- Parent
78f4a02
2 files changed+10 added−22 removed
modified:.github/workflows/benchmark.yml+4 added-8 removed
12345567892 unmodified lines1213141516171617181920212223242021222324name: Benchmarkon: push: tags: - '*' - "*" pull_request:permissions: contents: readjobs:2 unmodified lines runs-on: ubuntu-latest steps: - name: Checkout the repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 - name: Install Node.js & pnpm uses: pnpm/setup@5d160c5bc68a09337ad0d5654e237e03253b5879 # v1.0.0 with: version: 11 - name: Install Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 26 cache: pnpm runtime: node@26 - name: Install dependencies run: pnpm install --ignore-scripts - name: Run benchmark run: node ./test/benchmark.jsmodified:.github/workflows/test.yml+6 added-14 removed
12 unmodified lines13141516171817181920212223242521222324257 unmodified lines333435364142373839404546474849414243444524 unmodified lines12 unmodified lines runs-on: ubuntu-latest steps: - name: Checkout the repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 - name: Install Node.js & pnpm uses: pnpm/setup@5d160c5bc68a09337ad0d5654e237e03253b5879 # v1.0.0 with: version: 11 - name: Install Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 26 cache: pnpm runtime: node@26 - name: Install dependencies run: pnpm ci - name: Run tests run: pnpm test7 unmodified lines name: Node.js ${{ matrix.node-version }} Quick steps: - name: Checkout the repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 - name: Install Node.js & pnpm uses: pnpm/setup@5d160c5bc68a09337ad0d5654e237e03253b5879 # v1.0.0 with: version: 11 - name: Install Node.js ${{ matrix.node-version }} uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: ${{ matrix.node-version }} cache: pnpm runtime: node@${{ matrix.node }} - name: Install dependencies run: pnpm install --ignore-scripts - name: Run unit tests run: pnpm bnt24 unmodified lines