From f819724151f37327f67f3022294ba3d34c92bac1 Mon Sep 17 00:00:00 2001 From: AliReZa Sabouri Date: Thu, 16 Nov 2023 21:45:19 +0100 Subject: [PATCH] chore: fix workflow (add checkout code step) --- .github/workflows/build.yml | 36 +++++++++++++++-------------- .github/workflows/publish.yml | 43 +++++++++++++++++++---------------- 2 files changed, 42 insertions(+), 37 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 848e1a8..986719f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,22 +1,24 @@ name: Build Pull Requests on: - pull_request: - branches: [ master ] + pull_request: + branches: [ master ] jobs: - build: - runs-on: ubuntu-latest - env: - HUSKY: 0 - steps: - - name: Setup .NET 8 - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.0.100 - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build -c Release --no-restore - - name: Test - run: dotnet test -c Release --no-build --verbosity normal + build: + runs-on: ubuntu-latest + env: + HUSKY: 0 + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Setup .NET 8 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.100 + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build -c Release --no-restore + - name: Test + run: dotnet test -c Release --no-build --verbosity normal diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7d739a9..c5fd112 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,23 +12,26 @@ jobs: env: HUSKY: 0 steps: - - name: Setup .NET 8 - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.0.x - - name: Print information - run: | - ls -la - dotnet --info - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --configuration Release --no-restore - - name: Test - run: dotnet test --configuration Release --no-build --verbosity normal - - name: Publish Husky - uses: alirezanet/publish-nuget@v3.1.0 - with: - PROJECT_FILE_PATH: src/Husky/Husky.csproj - INCLUDE_SYMBOLS: true - NUGET_KEY: ${{secrets.NUGET_API_KEY}} + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup .NET 8 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + - name: Print information + run: | + ls -la + dotnet --info + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Test + run: dotnet test --configuration Release --no-build --verbosity normal + - name: Publish Husky + uses: alirezanet/publish-nuget@v3.1.0 + with: + PROJECT_FILE_PATH: src/Husky/Husky.csproj + INCLUDE_SYMBOLS: true + NUGET_KEY: ${{secrets.NUGET_API_KEY}}