mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +08:00
ce824b0ccf
* Use organization Prettier config * Bump version to 1.0.0 * Update workflow * Use npm ci and package.json script
33 lines
566 B
YAML
33 lines
566 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@v2
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "14"
|
|
|
|
- name: Install JS dependencies
|
|
run: npm ci
|
|
working-directory: ./js
|
|
|
|
- name: Check JS formatting
|
|
run: npm run format-check
|
|
working-directory: ./js
|