Переделка метода добычи токена #6
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 and test' | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '**.md' | |
env: | |
# Disable the .NET logo in the console output. | |
DOTNET_NOLOGO: true | |
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build. | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
# Disable sending .NET CLI telemetry to Microsoft. | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
# Set the build number in MinVer. | |
MINVERBUILDMETADATA: build.${{github.run_number}} | |
# Set Yandex Cloud private key | |
YC_PRIVATE_KEY: ${{ secrets.YC_PRIVATE_KEY }} | |
jobs: | |
build: | |
name: Build-${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
- name: 'Setup .NET Core' | |
uses: actions/[email protected] | |
with: | |
dotnet-version: '6.0.x' | |
- name: 'Install dependencies' | |
run: dotnet restore | |
- name: 'Build' | |
run: dotnet build --configuration Release --no-restore | |
- name: 'Test' | |
run: dotnet test --no-restore --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.os }}" | |
- name: 'Upload test results' | |
if: always() | |
uses: actions/[email protected] | |
with: | |
name: dotnet-results-${{ matrix.os }} | |
path: TestResults-${{ matrix.os }} | |
if-no-files-found: error | |
retention-days: 3 |