Skip to content

ci: update github action #12

ci: update github action

ci: update github action #12

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# https://github.com/rhysd/actionlint
name: Build-Test
on:
push:
branches:
- "main"
- "ci/nuget-package"
paths-ignore:
- "tree-sitter/**"
- "scripts/**"
pull_request:
branches:
- "main"
paths-ignore:
- "tree-sitter/**"
- "scripts/**"
env:
DOTNET_VERSION: "8.0.*"
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Restore dependencies
run: dotnet restore AIAssistant.sln
- 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