Skip to content

Commit

Permalink
Create build-test.yml template
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSzopa committed Sep 13, 2023
1 parent ee283e9 commit d2c8e11
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build and test
run-name: ${{github.actor}} is running continuous integration pipeline 🚀

on:
pull_request:
branches: master
workflow_dispatch:

jobs:
call-workflow-build-test:
uses: ./github/workflows/templates/build-test.yml
with:
shouldPublishArtifact: false
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Build and test
run-name: ${{github.actor}} is running build-test workflow 🚀

on:
push:
branches: master
pull_request:
branches: master
workflow_dispatch:
workflow_call:
inputs:
shouldPublishArtifact:
required: true
type: boolean

jobs:
Build-and-test:
Expand All @@ -27,5 +24,5 @@ jobs:
- name: Run integration tests
if: ${{vars.CAN_RUN_INTEGRATION_TESTS == 'true'}}
env:
ConnectionStrings__DefaultConnectionString: ${{ secrets.CONNECTIONSTRING_INTEGRATION_TESTS }}
ConnectionStrings__DefaultConnectionString: ${{ secrets.CONNECTIONSTRING_INTEGRATION_TESTS }}
run: dotnet test '${{ vars.INTEGRATION_TESTS_PATH }}' --no-build

0 comments on commit d2c8e11

Please sign in to comment.