mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +08:00
7025a7f5e0
* Pin 3rd party action * Pin GitHub-maintained actions to tag * Bump Bundlewatch Node.js to v14 LTS I have no clue what my thought process was when creating this workflow initially. Thrown this in here as it's a minor change and it's silly to make a PR just to update this number, in my opinion.
29 lines
479 B
YAML
29 lines
479 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: Check JS formatting
|
|
run: npx prettier --check src
|
|
working-directory: ./js
|