Skip to content

Commit

Permalink
ci: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Nov 26, 2024
1 parent 0cd3e3e commit c4961d0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ name: Build-Test
on:
push:
branches:
- "main"
- "nuget-package"
- "main"
- "ci/nuget-package"
paths-ignore:
- 'tree-sitter/**'
- 'scripts/**'
- "tree-sitter/**"
- "scripts/**"
pull_request:
branches:
- "main"
- "main"
paths-ignore:
- 'tree-sitter/**'
- 'scripts/**'
- "tree-sitter/**"
- "scripts/**"

env:
DOTNET_VERSION: "8.0.*"

Expand All @@ -27,27 +27,27 @@ jobs:
runs-on: ubuntu-latest
needs: pre-checks
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Restore dependencies
run: dotnet restore AIAssistant.sln
- name: Restore dependencies
run: dotnet restore AIAssistant.sln

- name: Build Version
run: dotnet build AIAssistant.sln -c Release --no-restore
- name: Build Version
run: dotnet build AIAssistant.sln -c Release --no-restore

# - name: Test Version
# run: |
# dotnet test AIAssistant.sln -c Release --no-restore --no-build
# dotnet test AIAssistant.sln -c Release --no-restore --no-build
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
tags:
- 'v*' # Matches tag names like v1.0.0 for releases
branches:
- main
- nuget-package
- "main"
- "ci/nuget-package"
paths-ignore:
- 'tests/**'
- "tests/**"

env:
GHC_SOURCE: ${{ vars.GHC_SOURCE }}
# FEED_SOURCE: https://api.nuget.org/v3/index.json
Expand Down

0 comments on commit c4961d0

Please sign in to comment.