Skip to content

fix: use exit signal on format action #3

fix: use exit signal on format action

fix: use exit signal on format action #3

Workflow file for this run

name: Checks
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- run: npm ci
- run: npm run lint
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- run: npm ci
- run: npm run format:ci | wc -l | awk '{if ($1 > 0) exit 1; else exit 0;}'