Update dependency rollup to v4.32.0 #1785
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 lints and tests. | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: CI | |
strategy: | |
matrix: | |
node: | |
- '20' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup pnpm | |
run: |- | |
corepack enable | |
pnpm --version | |
- name: Set pnpm store-dir | |
run: pnpm config set store-dir ~/.pnpm-store | |
- name: Cache pnpm modules | |
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.OS }}-pnpm-current-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.OS }}-pnpm-current | |
- name: Install packages | |
run: pnpm install | |
- name: Build | |
run: pnpm run build | |
- name: Run linter | |
run: pnpm run lint | |
- name: Run type checker | |
run: pnpm run type-check |