From bafacb1e5e5b0d639fecbbbdfececd8327d5d255 Mon Sep 17 00:00:00 2001 From: satya7289 Date: Wed, 29 Jul 2020 20:04:36 +0530 Subject: [PATCH] feat: Github actions with codecov --- .github/workflows/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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: