Skip to content

Bump actions/setup-dotnet from 3 to 4 #67

Bump actions/setup-dotnet from 3 to 4

Bump actions/setup-dotnet from 3 to 4 #67

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: 'Tasks CI'
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
statuses: write
checks: write
# https://docs.github.com/en/actions/learn-github-actions/variables
env:
PROJECT: src/Tasks
RELEASE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore $PROJECT
- name: Build
run: dotnet build $PROJECT --no-restore -c $RELEASE
- name: Test
run: dotnet test $PROJECT --no-build --verbosity normal -c $RELEASE --logger "trx;LogFileName=test-results.trx"
- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: .Net Unit Tests
path: "**/test-results.trx"
reporter: dotnet-trx
fail-on-error: true
tests_e2e:
uses: ./.github/workflows/tests-e2e-playwright.yml