Skip to content

Commit

Permalink
feat(ci): Running merge-aware tests on a pull request without actuall…
Browse files Browse the repository at this point in the history
…y merging
  • Loading branch information
nikitosikvn1 committed Jun 5, 2023
1 parent 58d265a commit fd8f806
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/django-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Django CI

on:
push:
branches: [ dev ]
branches:
- dev
pull_request:
branches: [ main ]
branches:
- dev
- main

jobs:
build-and-test:
Expand All @@ -20,6 +23,13 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Merge base branch 'dev'
run: |
git fetch origin dev:dev
git merge dev
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand Down

0 comments on commit fd8f806

Please sign in to comment.