Skip to content

chore(deps): Bump actions/checkout from 4 to 5 (#155) #257

chore(deps): Bump actions/checkout from 4 to 5 (#155)

chore(deps): Bump actions/checkout from 4 to 5 (#155) #257

name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
defaults:
run:
shell: pwsh
jobs:
build-and-test:
name: build-and-test on ${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
8.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -p:ContinuousIntegrationBuild=True -p:ReleaseDateAttribute=True --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal --logger trx --results-directory ${{ runner.temp }}
- name: Convert TRX to VS Playlist
if: failure()
uses: BenjaminMichaelis/trx-to-vsplaylist@v1
with:
trx-file-path: '${{ runner.temp }}/*.trx'
output-directory: '${{ runner.temp }}/vsplaylists'
automerge:
needs: [build-and-test]
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/[email protected]