Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 5 additions & 33 deletions .github/workflows/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ permissions:
contents: read

jobs:
prepare_linux:
name: 🐧 Prepare Linux
uses: codebeltnet/jobs-dotnet-restore/.github/workflows/default.yml@v2
with:
use-restore-cache: true

# prepare_windows:
# name: 🪟 Prepare Windows
# uses: codebeltnet/jobs-dotnet-restore/.github/workflows/default.yml@v1
# with:
# use-restore-cache: true
# runs-on: windows-2022

prepare_test:
name: 📜 Prepare Test
runs-on: ubuntu-24.04
Expand All @@ -58,34 +45,31 @@ jobs:

build:
name: call-build
needs: [prepare_linux]
strategy:
matrix:
configuration: [Debug, Release]
uses: codebeltnet/jobs-dotnet-build/.github/workflows/default.yml@v3
with:
configuration: ${{ matrix.configuration }}
restore-cache-key: ${{ needs.prepare_linux.outputs.restore-cache-key }}
strong-name-key-filename: cuemon.snk
secrets:
GCP_TOKEN: ${{ secrets.GCP_TOKEN }}
GCP_BUCKETNAME: ${{ secrets.GCP_BUCKETNAME }}

pack:
name: call-pack
needs: [prepare_linux, build]
needs: [build]
strategy:
matrix:
configuration: [Debug, Release]
uses: codebeltnet/jobs-dotnet-pack/.github/workflows/default.yml@v3
with:
configuration: ${{ matrix.configuration }}
version: ${{ needs.build.outputs.version }}
restore-cache-key: ${{ needs.prepare_linux.outputs.restore-cache-key }}

test_linux:
name: call-test-linux
needs: [build, prepare_test, prepare_linux]
needs: [build, prepare_test]
strategy:
fail-fast: false
matrix:
Expand All @@ -96,8 +80,8 @@ jobs:
runs-on: ubuntu-24.04
configuration: ${{ matrix.configuration }}
projects: ${{ matrix.project }}
restore-cache-key: ${{ needs.prepare_linux.outputs.restore-cache-key }}
build: true # we need to build due to xUnitv3
restore: true # we need to restore since we disabled caching

test_windows:
name: call-test-windows
Expand All @@ -118,7 +102,7 @@ jobs:

integration_test:
name: ⚗️ Integration Test
needs: [build, prepare_linux]
needs: [build]
strategy:
fail-fast: false
matrix:
Expand All @@ -144,19 +128,6 @@ jobs:
env:
SA_PASSWORD: ${{ secrets.SA_PASSWORD }}

- name: Restore Cache
uses: actions/cache/restore@v4
with:
path: |
${{ github.workspace }}
!${{ github.workspace }}/.git
~/.nuget/packages
key: ${{ needs.prepare_linux.outputs.restore-cache-key }}
restore-keys: |
dotnet-restore-
enableCrossOsArchive: true
fail-on-cache-miss: true

- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -169,6 +140,7 @@ jobs:
projects: ${{ matrix.project }}
configuration: ${{ matrix.configuration }}
build: true # apparently we need to due to xUnitv3
restore: true # we need to restore since we disabled caching
env:
CONNECTIONSTRINGS__ADVENTUREWORKS: ${{ secrets.DB_ADVENTUREWORKS }}

Expand Down
Loading