Skip to content

Commit

Permalink
feat(ci): running the pr check before anything else
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebon committed Nov 23, 2022
1 parent 05d536d commit 843ff50
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,9 @@ on:
branches:
- staging
jobs:
test-and-build:
uses: ./.github/workflows/test-and-build.yml
with:
flow: pull-request
branch: main
configuration: prod

check_pr_title:
name: Check Pr Title
runs-on: ubuntu-latest
needs: [ test-and-build ]
steps:
- name: Checkout [${{ inputs.branch }}]
uses: actions/checkout@v3
Expand All @@ -30,3 +22,11 @@ jobs:
key: cache-node-${{ hashFiles('pnpm-lock.yaml') }}
- name: lint pull request title
run: echo "${{ github.event.pull_request.title }}" | pnpm commitlint


test-and-build:
uses: ./.github/workflows/test-and-build.yml
with:
flow: pull-request
branch: main
configuration: prod

0 comments on commit 843ff50

Please sign in to comment.