50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: build-and-test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- develop
|
|
- next-release
|
|
- release/*
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
node: [20]
|
|
|
|
steps:
|
|
- name: Checkout 🛎
|
|
uses: actions/checkout@master
|
|
|
|
- name: Setup node env 🏗
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
check-latest: true
|
|
|
|
- name: Install Dependencies 👨🏻💻
|
|
uses: ./.github/actions/install-dependencies
|
|
|
|
- name: Run linter 🧹
|
|
run: pnpm run lint
|
|
|
|
- name: Build Library 👷
|
|
run: pnpm run build
|
|
|
|
- name: Run tests 🧪
|
|
uses: cypress-io/github-action@v6
|
|
with:
|
|
install-command: pnpm cypress install
|
|
command: pnpm run test
|