Merge pull request #4576 from LuckyPennySoftware/4575-transitive-depe… #1536
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
MINVERBUILDMETADATA: build.${{ github.run_id }}.${{ github.run_attempt}} | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-windows: | |
strategy: | |
fail-fast: false | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
- name: Build and Test | |
run: | | |
dotnet build --configuration Release | |
dotnet test --configuration Release --no-build --results-directory ".\artifacts" -l trx .\src\UnitTests | |
dotnet test --configuration Release --no-build --results-directory ".\artifacts" -l trx .\src\AutoMapper.DI.Tests | |
shell: pwsh | |
build: | |
needs: build-windows | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
- name: Build and Test | |
run: ./Build.ps1 | |
shell: pwsh | |
- name: Push to MyGet | |
if: github.ref == 'refs/heads/master' | |
env: | |
NUGET_URL: https://f.feedz.io/lucky-penny-software/automapper/nuget/index.json | |
NUGET_API_KEY: ${{ secrets.FEEDZIO_ACCESS_TOKEN }} | |
run: ./Push.ps1 | |
shell: pwsh | |
- name: Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts | |
path: artifacts/**/* |