Skip to content

Commit

Permalink
Merge pull request #2 from brienze1/develop
Browse files Browse the repository at this point in the history
[CI-CD] - changes workflow to validate changes before sending to main
  • Loading branch information
brienze1 committed Sep 19, 2022
2 parents 3b2d37f + c5b8650 commit 0341556
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build_changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build Changes

on:
push:
branches:
- develop

jobs:
lint:
uses: ./.github/workflows/lint.yml

test:
uses: ./.github/workflows/test.yml

dependency-check:
uses: ./.github/workflows/dependency_check.yml

pull-request:
needs:
- lint
- test
- dependency-check
uses: ./.github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
push:
branches:
- develop
- main

jobs:
lint:
Expand All @@ -28,8 +28,4 @@ jobs:
secrets:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
app_name: ${{ secrets.DOCKER_HUB_APP_NAME }}
token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

pull-request:
needs: coverage
uses: ./.github/workflows/pull_request.yml
token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

0 comments on commit 0341556

Please sign in to comment.