50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
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 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}"
|
|
|
|
- name: Run tests 🧪
|
|
run: pnpm test
|