This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
Update some versions #109
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
env: | |
DOTNET_VERSION: '8.x' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
runtime: [ 'win-x64', 'linux-x64', 'osx-arm64' ] | |
steps: | |
- name: Fetch Sources | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Install dependencies | |
run: dotnet restore -r ${{ matrix.runtime }} | |
- name: Build tool | |
run: dotnet build -c Release -r ${{ matrix.runtime }} --no-restore --nologo --no-self-contained | |
working-directory: ./DiagnosticsAgent | |
- name: Publish tool | |
run: dotnet publish -c Release -r ${{ matrix.runtime }} --no-restore --no-build --nologo --no-self-contained -p:PublishSingleFile=true | |
working-directory: ./DiagnosticsAgent | |
- name: Upload artifact | |
uses: actions/upload-artifact@main | |
with: | |
name: diagnostics-agent-${{ matrix.runtime }} | |
path: DiagnosticsAgent/bin/Release/net7.0/${{ matrix.runtime }}/publish/ | |
test: | |
name: Test | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch Sources | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Run Tests | |
run: dotnet test | |
working-directory: ./DiagnosticsAgent.Tests | |
# inspectCode: | |
# name: Inspect code | |
# needs: build | |
# runs-on: ubuntu-latest | |
# permissions: | |
# contents: write | |
# checks: write | |
# pull-requests: write | |
# steps: | |
# | |
# - name: Fetch Sources | |
# uses: actions/checkout@v4 | |
# | |
# - name: Qodana - Code Inspection | |
# uses: JetBrains/[email protected] | |
# with: | |
# cache-default-branch-only: true | |
# env: | |
# QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} |