diff --git a/.github/workflows/validate-commit.yml b/.github/workflows/validate-commit.yml new file mode 100644 index 0000000..3440aca --- /dev/null +++ b/.github/workflows/validate-commit.yml @@ -0,0 +1,24 @@ +name: validate commit + +on: + pull_request: + types: + - opened + - synchronize + - reopened + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 22 + cache: 'npm' + cache-dependency-path: 'package-lock.json' + - run: npm ci + - run: npm run test