diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83d6331c..8b9dbe3e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,7 @@ name: Run tests -on: [push] +on: +pull_request: + branches: [ develop ] jobs: run: runs-on: ${{ matrix.os }} @@ -12,7 +14,13 @@ jobs: PYTHON: ${{ matrix.python-version }} steps: - - uses: actions/checkout@develop + - uses: actions/checkout@v2.3.1 + - name: Check Commit Messages + with: + fetch-depth: 0 + - uses: actions/setup-node@v2.1.0 + - run: yarn add @commitlint/{config-conventional,cli} + - run: yarn run commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD - name: Setup Python uses: actions/setup-python@develop with: