4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 10:34:29 +08:00

Tancik/prettier on merge (#138)

* Add prettier formatting to github action
This commit is contained in:
Matthew Tancik 2022-07-14 09:49:27 -07:00 committed by GitHub
parent c5eecaec8d
commit 2230b7d220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 1 deletions

25
.github/workflows/prettier.yaml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Prettier
on:
pull_request:
branches:
- master
types: [closed]
jobs:
prettier:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Prettify JS code
uses: creyD/prettier_action@v4.2
with:
# This part is also where you can pass other options, for example:
prettier_options: --write ./pyrad/**/*.js

5
.gitignore vendored
View File

@ -178,4 +178,7 @@ temp*
.nfs*
external/
__MACOSX/
outputs*/
outputs*/
node_modules/
yarn.lock
package.json