Skip to content

Commit

Permalink
BE-14954: Refactor existing workflows to one file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubsemerak committed Mar 6, 2024
1 parent 666583b commit bd179df
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 38 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/publish.yml → .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defaults:
shell: pwsh

jobs:
create_nuget:
create-nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -46,9 +46,9 @@ jobs:
retention-days: 7
path: ${{ env.NuGetDirectory }}/*.nupkg

validate_nuget:
validate-nuget:
runs-on: ubuntu-latest
needs: [ create_nuget ]
needs: [ create-nuget ]
steps:
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
Expand All @@ -74,15 +74,19 @@ jobs:
uses: ./.github/workflows/dotnet-tests.yml
with:
working-directory: "dotnet/UneceGenerator"
configuration: "Release"

python-tests:
uses: ./.github/workflows/python-tests.yml
with:
working-directory: "python"

deploy:
# Publish only when creating a GitHub Release
# https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
# You can update this logic if you want to manage releases differently
if: github.event_name == 'release'
runs-on: ubuntu-latest
needs: [ validate_nuget, dotnet-tests ]
needs: [ validate-nuget, dotnet-tests, python-tests ]
steps:
# Download the NuGet package created in the previous job
- uses: actions/download-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

configuration:
required: false
default: "Debug"
default: "Release"
type: string


Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/pull.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/push.yml

This file was deleted.

0 comments on commit bd179df

Please sign in to comment.