Skip to content

Updating packages

Updating packages #674

Workflow file for this run

name: Test
on:
push:
branches-ignore:
- 'main'
tags-ignore:
- '**'
paths:
- '.github/workflows/test.yml'
- 'Directory.Packages.props'
- 'src/**'
- 'tests/**'
workflow_dispatch:
jobs:
restore-build-test:
runs-on: ubuntu-latest
steps:
-
name: Prepare - Checkout Code
uses: actions/checkout@v3
-
name: Prepare - Read Version
uses: bfren/read-file@v2
with:
file: ./Version
id: version
-
name: Prepare - Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
-
name: Prepare - Output versions
run: |
echo ".NET"
dotnet --version
dotnet nuget --version
dotnet msbuild --version
-
name: A - Restore
run: |
dotnet restore Test.csproj
-
name: B - Build
run: |
dotnet build Test.csproj \
--no-restore \
--configuration Test
-
name: C - Test
run: |
dotnet test Test.csproj \
--no-restore \
--no-build \
--configuration Test
-
if: success()
name: Finish - Success
uses: bfren/action-slack-notify@master
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: Jeebs (GitHub)
SLACK_MESSAGE: Tests Passed
SLACK_COLOR: good
SLACK_ICON: https://bfren.dev/img/logo-square-500x500.jpg
-
if: failure()
name: Finish - Failure
uses: bfren/action-slack-notify@master
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: Jeebs (GitHub)
SLACK_MESSAGE: Test Failed
SLACK_COLOR: danger
SLACK_ICON: https://bfren.dev/img/logo-square-500x500.jpg