Skip to content

don't publish the snap if it's a pull request (#795) #98

don't publish the snap if it's a pull request (#795)

don't publish the snap if it's a pull request (#795) #98

Workflow file for this run

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ "review_requested", "ready_for_review" ]
workflow_dispatch:
name: Tests
permissions:
id-token: write
contents: read
jobs:
shared:
name: "Test NickvisionMoney.Shared"
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '8.0.x' ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore NickvisionMoney.Shared/NickvisionMoney.Shared.csproj
- name: Build
run: dotnet build NickvisionMoney.Shared/NickvisionMoney.Shared.csproj --configuration Release --no-restore
- name: Test
run: dotnet test NickvisionMoney.Shared.Tests/NickvisionMoney.Shared.Tests.csproj --verbosity normal