update deps #167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build DevNEwsBot CLI Image | |
on: | |
push: | |
branches: | |
- main | |
- 'release/**' | |
tags: | |
- v1 | |
- v1.* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore Tools | |
run: dotnet tool restore | |
- name: Restore dependencies | |
run: dotnet restore | |
# - name: Run .NET Code Analysis | |
# uses: dotnet/code-analysis@main | |
# id: code-analysis | |
# with: | |
# build-breaking: true | |
# style: minimum | |
# dotnet-version: '6.0.x' | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --logger trx --results-directory "TestResults" | |
- name: Upload dotnet test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dotnet-results | |
path: TestResults | |