build: upgrade to pnpm@9.5.0 #221
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Main | |
on: | |
push: | |
branches: [main, next] | |
pull_request: | |
branches: [main, next, develop] | |
jobs: | |
validate_node_lts: | |
# only want to use codecov for node latest long-term-support | |
name: Validate Using Latest Node LTS | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9.5.0 | |
- name: Use Volta Node Version | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "package.json" | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm check-format | |
# build everything so the generated code can also be typechecked | |
- run: pnpm build | |
- run: pnpm lint | |
- run: pnpm typecheck | |
- run: pnpm test -- -- --coverage | |
- run: pnpx codecov -t ${{ secrets.CODECOV_TOKEN }} | |
# validate_matrix: | |
# name: Validate Using Node Matrix | |
# runs-on: ubuntu-latest | |
# if: "!contains(github.event.head_commit.message, 'skip ci')" | |
# strategy: | |
# matrix: | |
# node-version: [16.x] | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: pnpm/action-setup@v2.2.4 | |
# - name: Use Node.js ${{ matrix.node-version }} | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# cache: pnpm | |
# - run: pnpm install --frozen-lockfile | |
# - run: pnpm lint | |
# - run: pnpm typecheck | |
# - run: pnpm test |