Skip to content

Commit

Permalink
Run CI on main & develop branches
Browse files Browse the repository at this point in the history
  • Loading branch information
msz-rai committed Mar 7, 2024
1 parent ce7ceae commit 339815c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: build-and-test

run-name: Build & test for PR '${{ github.event.pull_request.title }}'

on: [pull_request]
run-name: Build & test for ${{ github.event_name == 'pull_request' && # If PR
PR '${{ github.event.pull_request.title }}' || # run-name for PR
${{ github.event.push.ref }} ${{ github.event.push.head_commit.id }} }} # run-name for push

on:
push:
branches:
- 'main'
- 'develop'
pull_request:
types: [opened, synchronize, reopened]

# Cancel previous runs if new changes on PR/branch
concurrency:
Expand Down

0 comments on commit 339815c

Please sign in to comment.