1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-24 21:15:51 +01:00

chore: format as separated workflow (#2194)

This commit is contained in:
Juan Picado 2021-04-23 23:04:48 +02:00 committed by GitHub
parent 211da6054c
commit 9ddce9dec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 2 deletions

@ -34,8 +34,6 @@ jobs:
run: npm i pnpm@latest -g
- name: Install
run: pnpm recursive install
- name: Format
run: pnpm format:check
- name: Lint
run: pnpm lint
- name: Clean

26
.github/workflows/format.yml vendored Normal file

@ -0,0 +1,26 @@
name: format
on: [pull_request]
jobs:
format:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node_version: [16]
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i pnpm@latest -g
- name: Install
run: pnpm recursive install
- name: Format
run: pnpm format:check