Skip to content

Commit

Permalink
Add CLI build and dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Jan 9, 2024
1 parent 4982353 commit 343cc3f
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
51 changes: 51 additions & 0 deletions .github/workflows/cli-tool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CLI Tool

on:
workflow_dispatch:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
build:
runs-on: windows-2022

steps:

- name: Package
run: dotnet pack src\GUI\efcpt.6\efcpt.6.csproj -p:PackageVersion=6.1.$($Env:APPVEYOR_BUILD_NUMBER) -p:InformationalVersion=6.1.$($Env:APPVEYOR_BUILD_NUMBER)

- name: Package
run: dotnet pack src\GUI\efcpt.7\efcpt.7.csproj -p:PackageVersion=7.1.$($Env:APPVEYOR_BUILD_NUMBER) -p:InformationalVersion=7.1.$($Env:APPVEYOR_BUILD_NUMBER)

- name: Package
run: dotnet pack src\GUI\efcpt.8\efcpt.8.csproj -p:PackageVersion=8.1.$($Env:APPVEYOR_BUILD_NUMBER) -p:InformationalVersion=8.1.$($Env:APPVEYOR_BUILD_NUMBER)

- name: Package
run: dotnet pack src\GUI\ErikEJ.EntityFrameworkCore.7.SqlServer.Dacpac\ErikEJ.EntityFrameworkCore.7.SqlServer.Dacpac.csproj

- name: Package
run: dotnet pack src\GUI\ErikEJ.EntityFrameworkCore.SqlServer.Dacpac\ErikEJ.EntityFrameworkCore.6.SqlServer.Dacpac.csproj

- name: Package
run: dotnet pack src\GUI\ErikEJ.EntityFrameworkCore.8.SqlServer.Dacpac\ErikEJ.EntityFrameworkCore.8.SqlServer.Dacpac.csproj

- name: Package
run: dotnet pack src\GUI\ErikEJ.EntityFrameworkCore.6.SqlServer.SqlQuery\ErikEJ.EntityFrameworkCore.6.SqlServer.SqlQuery.csproj

- name: Package
run: dotnet pack src\GUI\ErikEJ.EntityFrameworkCore.7.SqlServer.SqlQuery\ErikEJ.EntityFrameworkCore.7.SqlServer.SqlQuery.csproj

- name: Core test project
run: dotnet test src\GUI\NUnitTestCore\NUnitTestCore.csproj
continue-on-error: false

- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
name: CLI Tool
path: |
**/*.nupkg
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<ItemGroup>
<None Include="readme.md" Pack="true" PackagePath="\" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup>
<DefineConstants>TRACE;CORE70</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@
<PropertyGroup Condition="'$(CI)' == 'True'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<None Include="readme.md" Pack="true" PackagePath="\" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup>
<DefineConstants>TRACE;CORE70</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
<PackageReference Include="Microsoft.SqlServer.DacFx" Version="162.1.167" />
Expand Down

0 comments on commit 343cc3f

Please sign in to comment.