mirror of
https://github.com/flarum/framework.git
synced 2025-02-09 11:03:35 +08:00
59fdd7628a
* Install Prettier only, instead of all deps * Allow running on workflow dispatch Allows manually triggered CI runs by org members * Update Node to latest LTS; update step descriptions
29 lines
483 B
YAML
29 lines
483 B
YAML
name: Lint
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- 'js/src/**'
|
|
pull_request:
|
|
paths:
|
|
- 'js/src/**'
|
|
|
|
jobs:
|
|
prettier:
|
|
name: JS / Prettier
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@master
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "14"
|
|
|
|
- name: Check JS formatting
|
|
run: npx prettier --check src
|
|
working-directory: ./js
|