2021-11-16 21:39:53 +08:00
|
|
|
name: Code Quality
|
2021-11-16 19:29:22 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
format:
|
|
|
|
name: Format
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Use Node.js 16.x
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 16.x
|
|
|
|
cache: "npm"
|
|
|
|
|
|
|
|
- run: npm ci
|
|
|
|
|
|
|
|
- run: npx prettier --check .
|
|
|
|
# vim: set et ts=2 sw=2:
|