Skip to content

[HAB-93] Prettier GitHub action #1

[HAB-93] Prettier GitHub action

[HAB-93] Prettier GitHub action #1

Workflow file for this run

name: Code Quality checks
on:
pull_request:
branches:
- "**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
prettier:
name: Prettier
runs-on: windows-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: npm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm install -D
- name: Format with Prettier
run: npm prettier:format
- name: Check formatting with Prettier
run: npm run prettier:check:ci