release 2.5 #204
Workflow file for this run
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: Build and Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.8.0 | |
- uses: actions/checkout@v2 | |
- name: Cache PNPM dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Cache build artifacts | |
uses: actions/cache@v3 | |
with: | |
path: dist | |
key: ${{ runner.os }}-build-${{ matrix.node-version }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- name: Build | |
run: pnpm rollup | |
- name: Unit Tests | |
run: pnpm test |