Skip to content

Bump the entity-framework group with 3 updates #351

Bump the entity-framework group with 3 updates

Bump the entity-framework group with 3 updates #351

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Frans van Dorsselaer
#
# SPDX-License-Identifier: MIT
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
issues: read
checks: write
pull-requests: write
id-token: write
attestations: write
jobs:
build:
runs-on: ubuntu-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
cache: true
cache-dependency-path: |
global.json
'**/Directory.Packages.props'
.config/dotnet-tools.json
- name: Install dependencies
run: |
dotnet tool restore
dotnet restore
- name: Build
run: |
dotnet build --configuration Release --no-restore
- name: Test
run: |
dotnet test --configuration Release --no-build \
--report-spekt-junit \
--coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml
- name: Package
run: |
dotnet pack --configuration Release --no-build
- name: Upload Package Artifact
id: upload
uses: actions/upload-artifact@v7
with:
name: artifacts
path: |
**/*.nupkg
**/*.snupkg
retention-days: 14
- name: Build Attestation
uses: actions/attest@v4
with:
subject-name: artifacts.zip
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
report_type: test_results
files: '**/TestResults/TestResults.xml'
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: '**/TestResults/coverage.cobertura.xml'
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}