diff --git a/.github/workflows/validate.yml b/.github/workflows/validate_datapack.yml similarity index 82% rename from .github/workflows/validate.yml rename to .github/workflows/validate_datapack.yml index 2e39225f3..f513e1de6 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate_datapack.yml @@ -1,6 +1,10 @@ -name: validate +name: validate_datapack -on: [push, workflow_dispatch] +on: + pull_request: + push: + branches: + - main # TODO(37): add linting jobs: diff --git a/.github/workflows/validate_scripts.yml b/.github/workflows/validate_scripts.yml new file mode 100644 index 000000000..dbb8a4922 --- /dev/null +++ b/.github/workflows/validate_scripts.yml @@ -0,0 +1,20 @@ +name: validate_scripts + +on: + pull_request: + push: + branches: + - main + +jobs: + prettier: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Prettify code + uses: creyD/prettier_action@v4.3 + with: + dry: True + prettier_options: '--check .' + prettier_version: 3.1.1