From 32efe66fec8158567f1afb58d051e1d696a4c2bd Mon Sep 17 00:00:00 2001 From: Danielle Heberling Date: Mon, 16 Sep 2024 19:37:57 -0700 Subject: [PATCH] Move commit hooks to CI --- .github/workflows/pr-validate.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pr-validate.yml diff --git a/.github/workflows/pr-validate.yml b/.github/workflows/pr-validate.yml new file mode 100644 index 0000000..8f2da6a --- /dev/null +++ b/.github/workflows/pr-validate.yml @@ -0,0 +1,31 @@ +name: PR Validation + +on: + pull_request: + branches: + - main + +jobs: + validate: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + + - name: Install dependencies + run: npm install + + - name: Run build + run: npm run build + + - name: Run format check + run: npm run format:check + + - name: Run lint check + run: npm run lint:check