Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI / CD #12

Open
wants to merge 63 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
16d5f71
Using dll to have a fixed date for test files
PABERTHIER Sep 23, 2024
a98d611
Update csproj
PABERTHIER Sep 23, 2024
19c7b36
Add build CI
PABERTHIER Sep 23, 2024
d101f43
Remove ref
PABERTHIER Sep 23, 2024
1636bea
Update AfterTargets
PABERTHIER Sep 23, 2024
4a13c02
Try to install ffmpeg
PABERTHIER Sep 23, 2024
7c70bc1
Try with older fixed version of ffmpeg
PABERTHIER Sep 25, 2024
e79c6af
Different version
PABERTHIER Sep 25, 2024
b845634
Fix version
PABERTHIER Sep 25, 2024
1fa7b1b
Update version
PABERTHIER Sep 25, 2024
f6d49df
Downgrade to 6.0
PABERTHIER Sep 25, 2024
410e66a
ffmpeg.rar
PABERTHIER Sep 29, 2024
ddc3b82
ffplay.rar
PABERTHIER Sep 29, 2024
b7aa068
ffprobe.rar
PABERTHIER Sep 29, 2024
72d1921
Updating FFMpegCore options to use local binaries
PABERTHIER Sep 29, 2024
5ffc1a2
Clean up ApplicationViewModelNotifyCatalogChangeTests setup
PABERTHIER Sep 30, 2024
4b617a9
Adding TearDown for instance reset
PABERTHIER Sep 30, 2024
16dfc28
Revert "Adding TearDown for instance reset"
PABERTHIER Sep 30, 2024
254ee0a
Ignore failing tests
PABERTHIER Sep 30, 2024
559123a
Test to run only one failing test
PABERTHIER Oct 1, 2024
9a5c1bb
Test one case only
PABERTHIER Oct 1, 2024
a1595ed
Test to split into 2 tests
PABERTHIER Oct 1, 2024
5e76fe5
Use only Setup
PABERTHIER Oct 1, 2024
f37839b
Test with two different assets
PABERTHIER Oct 1, 2024
72ecc9a
Rollback and test to reset the temp asset at the end of the test
PABERTHIER Oct 1, 2024
40751c9
Remove ignore
PABERTHIER Oct 1, 2024
8e16006
Test with different temp path
PABERTHIER Oct 1, 2024
6b3e807
Rollback changes + remove ignore on tests + fix issue
PABERTHIER Oct 1, 2024
90f9e5e
Remove Guid.NewGuid() from temp path and bind it with testcase
PABERTHIER Nov 6, 2024
f80915c
Dynamic temp image name
PABERTHIER Nov 6, 2024
0b96580
Ignore all tests files not failing
PABERTHIER Nov 6, 2024
a971a78
Keep one file test CI and ignore tests inside excepts failing ones
PABERTHIER Nov 6, 2024
51b9129
Tests in separated file
PABERTHIER Nov 8, 2024
569d9c5
Move failing tests into new temp project
PABERTHIER Nov 8, 2024
223177e
Fix name for clarity
PABERTHIER Nov 8, 2024
c96e27c
Clean up assertions
PABERTHIER Nov 8, 2024
9a988ba
Update temp test to be closer to the source
PABERTHIER Nov 9, 2024
f7fdf38
Clean up asserts pt1
PABERTHIER Nov 9, 2024
097c716
Clean up asserts pt2
PABERTHIER Nov 9, 2024
9c3970c
Clean up asserts pt3
PABERTHIER Nov 9, 2024
f6ae2d1
Clean up asserts pt4
PABERTHIER Nov 9, 2024
c4f65b7
Separates catalogChanges
PABERTHIER Nov 9, 2024
e59597d
Log + commenting date update
PABERTHIER Nov 9, 2024
19199a8
Rollback removal date update
PABERTHIER Nov 9, 2024
7eb8ea6
Try to change update detection
PABERTHIER Nov 9, 2024
9f13daa
Update image date after corruption
PABERTHIER Nov 9, 2024
1cd80bf
Try to launch failing tests with the fix
PABERTHIER Nov 9, 2024
cecb1ac
Fix update date time
PABERTHIER Nov 9, 2024
0c110df
Clean up
PABERTHIER Nov 9, 2024
229dd85
Remove filter on tests for CI
PABERTHIER Nov 9, 2024
08d90c5
Remove temp test project
PABERTHIER Nov 9, 2024
203e83b
Merge branch 'main' into feature/CI-CD
PABERTHIER Nov 9, 2024
bcd46a6
Remove warnings from dll code
PABERTHIER Nov 9, 2024
4f258d5
Fix naming param for ExtractRarFile task
PABERTHIER Nov 10, 2024
1761b72
Clean up Tests.csproj
PABERTHIER Nov 11, 2024
dc9d902
Fix clean up
PABERTHIER Nov 11, 2024
bb6dbec
Improve VideoHelper
PABERTHIER Nov 11, 2024
1a0fd5e
Update custom tasks for full support with VS
PABERTHIER Nov 12, 2024
e4bd311
Merge branch 'improvements/msbuild-tasks' into feature/CI-CD
PABERTHIER Nov 12, 2024
f1f0cb1
Merge branch 'main' into feature/CI-CD
PABERTHIER Nov 12, 2024
94222ca
Improve CI
PABERTHIER Nov 14, 2024
f0d0451
Upload artifacts
PABERTHIER Nov 14, 2024
e8fb424
Fix artifacts output
PABERTHIER Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed .github/workflows/.gitkeep
Empty file.
70 changes: 70 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Continuous Integration

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

jobs:
build-windows:
name: Windows Build
runs-on: windows-latest

env:
PROJECT_NAME: PhotoManager/PhotoManager.sln
DOTNET_VERSION: 8.0.x

steps:
# Checkout the code
- name: ⤵️ Checkout Source
uses: actions/checkout@v4

# Setup .NET SDK
- name: 🛠️ Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

# Cache NuGet packages for faster builds
- name: 💾 Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-

# Display .NET version for confirmation
- name: 🖥️ Display .NET version
run: dotnet --info

# Restore dependencies
- name: 🛠️ Restore dependencies
run: dotnet restore ${{ env.PROJECT_NAME }}

# Build the project with Release configuration and output results to 'package' folder
- name: 🔨 Build
run: dotnet build --no-restore --configuration Release --output package ${{ env.PROJECT_NAME }}

# Run tests with Release configuration and output results to 'test-results' folder
- name: 🔨 Test
run: dotnet test --no-build --configuration Release --verbosity normal --logger "trx;LogFileName=test-results/test-results.trx" ${{ env.PROJECT_NAME }}

# Upload build artifacts
- name: 💾 Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Package
path: package

# Upload test results
- name: 💾 Upload test results
uses: actions/upload-artifact@v4
with:
name: Test results (Windows)
path: test-results
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
5 changes: 2 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

![PhotoManager](PhotoManager/Images/AppIcon.png)

<!-- [![Test](https://github.com/PABERTHIER/photo-manager/actions/workflows/test.yml/badge.svg)](https://github.com/PABERTHIER/photo-manager/actions/workflows/test.yml)
[![Release](https://github.com/PABERTHIER/photo-manager/actions/workflows/release.yaml/badge.svg)](https://github.com/PABERTHIER/photo-manager/actions/workflows/release.yaml)
[![Build & Test](https://github.com/PABERTHIER/photo-manager/actions/workflows/build.yml/badge.svg)](https://github.com/PABERTHIER/photo-manager/actions/workflows/build.yml)
<!-- [![Release](https://github.com/PABERTHIER/photo-manager/actions/workflows/release.yaml/badge.svg)](https://github.com/PABERTHIER/photo-manager/actions/workflows/release.yaml)
[![CodeQL](https://github.com/PABERTHIER/photo-manager/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/PABERTHIER/photo-manager/actions/workflows/codeql-analysis.yml) -->

**I used this [repo](https://github.com/jpablodrexler/jp-photo-manager) as a base to shape my own PhotoManager with optimizations, new features, bugs fix...
Expand All @@ -29,7 +29,6 @@ Even the database is stored in your computer.**
## Upcoming :next_track_button:

- 100% of code coverage.
- Pipelines.
- Progress bar.
- Multithread.
- Handling corrupted images and videos.
Expand Down
Loading