Files
vue-flow/.github/workflows/build-and-test.yml
2022-10-08 23:35:00 +02:00

50 lines
982 B
YAML

name: build-and-test
on:
pull_request:
branches:
- master
- develop
env:
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
- uses: pnpm/action-setup@v2.2.2
name: Install pnpm
with:
version: 7
run_install: false
- name: Setup pnpm config 🏗
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: Install dependencies 👨🏻‍💻
run: pnpm install --no-frozen-lockfile
- name: Run linter 🧹
run: pnpm lint
- name: Build Library 👷
run: pnpm build
- name: Run tests 🧪
run: pnpm test