mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +03:00
c2dae52c95
The CI seems to faster with parallel=1. Also avoid unnecessarily building the extension again while testing.
35 lines
810 B
YAML
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@v3
|
|
- 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=1
|
|
- name: Lint
|
|
run: pnpm exec nx affected --target=lint --parallel=1
|
|
- name: Test
|
|
uses: GabrielBB/xvfb-action@v1
|
|
with:
|
|
run: pnpm exec nx affected --target=test --parallel=1
|