diff --git a/.github/workflows/quality-check.yaml b/.github/workflows/quality-check.yaml new file mode 100644 index 0000000..bb17fca --- /dev/null +++ b/.github/workflows/quality-check.yaml @@ -0,0 +1,27 @@ +name: Quality Check + +on: + pull_request: + branches: + - main + +## Cancel the previous run if a new one is triggered for the current branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + prettier: + name: Check with Prettier + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - name: Setup Node.js + uses: actions/setup-node@v3 + + - name: Run Prettier + run: npx prettier --check './**/*.ts'