22 lines
416 B
YAML
22 lines
416 B
YAML
|
name: Prettier
|
||
|
|
||
|
on: [pull_request]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Clone source code
|
||
|
uses: actions/checkout@v1
|
||
|
- name: Install Node
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: 10.x
|
||
|
- name: Install dependencies and run Prettier
|
||
|
run: |
|
||
|
npm install
|
||
|
npm run check-prettier
|
||
|
env:
|
||
|
CI: true
|