Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
981 changes: 981 additions & 0 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

42 changes: 24 additions & 18 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,31 @@ variables:
linuxImage: 'ubuntu-24.04'
macImage: 'macOS-15'

trigger:
branches:
include:
- develop
- master
paths:
exclude:
- .github
- src/Radarr.Api.*/openapi.json
# CI/CD has been migrated to GitHub Actions (.github/workflows/ci.yml)
# Triggers disabled to prevent duplicate builds
trigger: none
pr: none

pr:
branches:
include:
- develop
paths:
exclude:
- .github
- src/NzbDrone.Core/Localization/Core
- src/Radarr.Api.*/openapi.json
# Original trigger configuration (preserved for reference):
# trigger:
# branches:
# include:
# - develop
# - master
# paths:
# exclude:
# - .github
# - src/Radarr.Api.*/openapi.json
#
# pr:
# branches:
# include:
# - develop
# paths:
# exclude:
# - .github
# - src/NzbDrone.Core/Localization/Core
# - src/Radarr.Api.*/openapi.json

stages:
- stage: Setup
Expand Down
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ PackageWindows()
local folder=$artifactsFolder/$runtime/$framework/Radarr

PackageFiles "$folder" "$framework" "$runtime"
cp -r $outputFolder/$framework-windows/$runtime/publish/* $folder
if [ -d "$outputFolder/$framework-windows/$runtime/publish" ]; then
cp -r $outputFolder/$framework-windows/$runtime/publish/* $folder
else
echo "Skipping Windows-specific overlay (net8.0-windows not built on this platform)"
fi

echo "Removing Radarr.Mono"
rm -f $folder/Radarr.Mono.*
Expand Down
5 changes: 5 additions & 0 deletions frontend/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
**/JsLibraries/**
**/*.css.d.ts
**/*.test.ts
**/*.test.tsx
**/test/setup.ts
**/test/cssModuleMock.ts
vitest.config.ts
2 changes: 1 addition & 1 deletion frontend/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ module.exports = (env) => {
rules: [
{
test: [/\.jsx?$/, /\.tsx?$/],
exclude: /(node_modules|JsLibraries)/,
exclude: /(node_modules|JsLibraries|\.test\.[jt]sx?$)/,
use: [
{
loader: 'babel-loader',
Expand Down
8 changes: 2 additions & 6 deletions frontend/src/Components/Icon.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ describe('Icon', () => {

it('applies containerClassName to the title wrapper span', () => {
render(
<Icon
name={faCheck}
title="Test"
containerClassName="my-container"
/>
<Icon name={faCheck} title="Test" containerClassName="my-container" />
);
const span = screen.getByTitle('Test');

Expand All @@ -69,7 +65,7 @@ describe('Icon', () => {
});

it('renders spinning icon when isSpinning is true', () => {
const { container } = render(<Icon name={faSpinner} isSpinning />);
const { container } = render(<Icon name={faSpinner} isSpinning={true} />);
const svg = container.querySelector('svg') as SVGElement;

expect(svg.classList.toString()).toContain('spin');
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Components/Label.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Label', () => {
});

it('applies outline class when outline is true', () => {
render(<Label outline>Outline</Label>);
render(<Label outline={true}>Outline</Label>);
const el = screen.getByText('Outline');

expect(el.className).toContain('outline');
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/Components/ProgressBar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ describe('ProgressBar', () => {
});

it('shows text when showText is true', () => {
render(<ProgressBar progress={50} showText />);
render(<ProgressBar progress={50} showText={true} />);

expect(screen.getByText('50.0%')).toBeInTheDocument();
});

it('shows custom text when provided', () => {
render(<ProgressBar progress={50} showText text="Half done" />);
render(<ProgressBar progress={50} showText={true} text="Half done" />);

expect(screen.getByText('Half done')).toBeInTheDocument();
});
Expand Down
4 changes: 3 additions & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"./typings/*.ts",
],
"exclude": [
"node_modules"
"node_modules",
"src/**/*.test.ts",
"src/**/*.test.tsx"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public MediaInfoModel GetMediaInfo(string filename)
sideData = sideData.Concat(dvSideData).ToList();
}
}

mediaInfoModel.VideoHdrFormat = GetHdrFormat(mediaInfoModel.VideoBitDepth, mediaInfoModel.VideoColourPrimaries, mediaInfoModel.VideoTransferCharacteristics, sideData);

return mediaInfoModel;
Expand Down
Loading