redux-devtools/.github/workflows/CI.yml
Nathan Bierema 8211ada0d8
Switch to Nx (#1152)
* Nx

* Updates

* Format

* fetch-depth

* Update

* Fix
2022-05-08 14:51:47 -04:00

35 lines
810 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v2
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check formatting
run: pnpm run format:check
- name: Build
run: pnpm exec nx affected --target=build --parallel=3
- name: Lint
run: pnpm exec nx affected --target=lint --parallel=3
- name: Test
uses: GabrielBB/xvfb-action@v1
with:
run: pnpm exec nx affected --target=test --parallel=3