Skip to content

Commit

Permalink
ci: add Zeugwerk
Browse files Browse the repository at this point in the history
  • Loading branch information
densogiaichned committed Feb 10, 2024
1 parent 60d8ca9 commit 0481aad
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .Zeugwerk/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"fileversion": 1,
"solution": "TcHaxx.Snappy.sln",
"projects": [
{
"name": "snappy",
"plcs": [
{
"version": "0.0.1.0",
"name": "snappy",
"type": "Library",
"packages": [
{
"version": "0.3.0.0",
"name": "rplc",
"distributor-name": "tchaxx"
},
{
"version": "1.3.0.0",
"name": "TcUnit",
"distributor-name": "www.tcunit.org"
}
],
"references": {
"*": [
"Tc2_Standard=*",
"Tc2_System=*",
"Tc3_JsonXml=*",
"Tc3_Module=*"
]
}
}
]
}
]
}
21 changes: 20 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,23 @@ jobs:
run: dotnet build -c Release --no-restore ${{ env.solution }}
- name: Test
if: success()
run: dotnet test -c Release --no-build --verbosity normal ${{ env.solution }}
run: dotnet test -c Release --no-build --verbosity normal ${{ env.solution }}

ci-tchaxx-snappy-tc:
name: CI - TcHaxx.Snappy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build TcHaxx.Snappy
uses: Zeugwerk/[email protected]
with:
username: ${{ secrets.ACTIONS_ZGWK_USERNAME }}
password: ${{ secrets.ACTIONS_ZGWK_PASSWORD }}
- name: Upload *.library
uses: actions/upload-artifact@v4
with:
name: snappy
path: |
**/*.compiled-library
**/*.library
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![CI/CD](https://github.com/TcHaxx/snappy/actions/workflows/cicd.yml/badge.svg)](https://github.com/TcHaxx/snappy/actions/workflows/cicd.yml)
---
# snappy
A *upcoming* Snapshot Testing framework for TwinCAT 3.

Expand Down
8 changes: 6 additions & 2 deletions src/TcHaxx.Snappy.CLI/TcHaxx.Snappy.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<RepositoryUrl>https://github.com/TcHaxx/snappy</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>snapshot-testing; unit-test; twincat</PackageTags>
<PackageReadmeFile>..\..\README.md</PackageReadmeFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/TcHaxx/snappy</PackageProjectUrl>
<Description>A Snapshot Testing framework for TwinCAT 3</Description>
<Copyright>Copyright (c) 2024 densogiaichned</Copyright>
<Title>TwinCAT Snapshot Testing framework</Title>
<Version>0.0.0</Version>
<Version>0.0.1</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<PackAsTool>True</PackAsTool>
Expand All @@ -37,6 +37,10 @@
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/TcHaxx.Snappy/TcHaxx.Snappy.tsproj
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<Defines></Defines>
</Variant>
</ProjectVariant>
<Instance Id="#x08502000" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="snappy\snappy.tmc" TmcHash="{A568AF18-15CD-2AA0-082F-0ED3F6C8FAF3}">
<Instance Id="#x08502000" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="snappy\snappy.tmc" TmcHash="{171809E6-AC6D-5676-0B43-94EAFE5565AE}">
<Name>snappy Instance</Name>
<CLSID ClassFactory="TcPlc30">{08500001-0000-0000-F000-000000000064}</CLSID>
<Contexts>
Expand Down
2 changes: 1 addition & 1 deletion src/TcHaxx.Snappy/snappy/snappy.plcproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<Company>TcHaxx</Company>
<Released>false</Released>
<Title>snappy</Title>
<ProjectVersion>0.0.0.0</ProjectVersion>
<ProjectVersion>0.0.1.0</ProjectVersion>
<LibraryCategories>
<LibraryCategory xmlns="">
<Id>{9c7e50a7-dead-beef-897b-4cdbc169222d}</Id>
Expand Down

0 comments on commit 0481aad

Please sign in to comment.