diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 0000000..282f802 --- /dev/null +++ b/.github/workflows/dev.yml @@ -0,0 +1,36 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: YongAnFrame Dev CI + +on: + push: + branches: + - dev + pull_request: + branches: + - dev + workflow_dispatch: +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + + - name: Setup NuGet + uses: NuGet/setup-nuget@v2.0.0 + + - name: Restore NuGet packages + run: nuget restore YongAnFrame.sln + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: Test + run: dotnet test --no-build --verbosity normal