mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 02:53:53 +03:00
9695e499f2
* Use default Node version in CI
GitHub's default Node version doesn't require additional downloads or installations. Currently the LTS and default version are similar, but I think it would be best to stay consistent with the other repositories.
* Replace deprecated action
* Revert "Use default Node version in CI"
This reverts commit b6a1ffd4b5
.
35 lines
716 B
YAML
35 lines
716 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
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 run build:all
|
|
- name: Lint
|
|
run: pnpm run lint:all
|
|
- name: Test
|
|
uses: coactions/setup-xvfb@v1
|
|
with:
|
|
run: pnpm run test:all
|