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

Adding CI #313

Open
wants to merge 25 commits into
base: vnext
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
62201a5
adding ci that builds the product on pr
ChronosSF Mar 13, 2023
47c9bdc
fixing pipeline
ChronosSF Mar 13, 2023
020f14e
removing something valid only in devops
ChronosSF Mar 13, 2023
6af4f93
try with node 16
ChronosSF Mar 13, 2023
9ebb50b
fixing identation
ChronosSF Mar 13, 2023
cbf1960
trying something different
ChronosSF Mar 13, 2023
23f87b2
change dir mark
ChronosSF Mar 13, 2023
19cdc1f
adding some logs
ChronosSF Mar 13, 2023
b78223a
trying cd
ChronosSF Mar 13, 2023
7413520
trying without npx
ChronosSF Mar 13, 2023
ec0ba49
trying something else
ChronosSF Mar 16, 2023
e7ee0a3
after install
ChronosSF Mar 16, 2023
5d0c77d
Merge branch 'vnext' of https://github.com/IgniteUI/igniteui-blazor-e…
kdinev Apr 3, 2023
b7f6717
ci(gh actions): changing the working directory
kdinev Apr 3, 2023
db302e3
ci(gh actions): fix ci
kdinev Apr 3, 2023
61d1d9a
chore(*): adding a new log for debug
kdinev Apr 3, 2023
5da1c36
chore(*): trying out the build now
kdinev Apr 3, 2023
f936c5f
fix(ci): spelling dotnet correctly in the build
kdinev Apr 3, 2023
5e59a69
chore(*): getting rid of debug messages
kdinev Apr 3, 2023
e6a38ab
ci(dotnet): project path correction
kdinev Apr 3, 2023
538f26d
chore(*): merging with vnext
kdinev May 2, 2023
796b7d3
Merge branch 'vnext' of https://github.com/IgniteUI/igniteui-blazor-e…
kdinev May 22, 2023
c422381
chore(*): removing unused dependencies
kdinev Jun 26, 2023
9bf10ff
chore(*): vnext into add-ci
kdinev Jun 26, 2023
a882b77
feat(ci): build should pass now
kdinev Jun 28, 2023
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
33 changes: 33 additions & 0 deletions .github/workflows/blazor-examples-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Blazor Examples CI

on:
push:
branches: [ master, vnext ]
pull_request:
branches: [ master, vnext ]


jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16

- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Copy Samples to IgBlazorSamples.Client
working-directory: ./browser/IgBlazorSamples.Gulp
run: |
npm ci
gulp copySamplesToClient

- name: Build IgBlazorSamples.Client
run: dotnet build browser/IgBlazorSamples.Client
9 changes: 4 additions & 5 deletions browser/IgBlazorSamples.Client/IgBlazorSamples.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,15 @@
<!-- End NPM Updates -->

<ItemGroup>
<PackageReference Include="IgniteUI.Blazor.Documents.Core.Trial" Version="23.1.33" />
<PackageReference Include="IgniteUI.Blazor.Documents.Excel.Trial" Version="23.1.33" />
<PackageReference Include="IgniteUI.Blazor.Trial" Version="23.1.33" />
<PackageReference Include="IgniteUI.Blazor.Documents.Core.Trial" Version="23.1.37" />
<PackageReference Include="IgniteUI.Blazor.Documents.Excel.Trial" Version="23.1.37" />
<PackageReference Include="IgniteUI.Blazor.Trial" Version="23.1.37" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Cors" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Net.Http.Json" Version="6.0.0" />
<PackageReference Include="System.Net.Http.Json" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions browser/IgBlazorSamples.Client/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<script src="sb/grid-excel-style-filtering-sample-2.js"></script>
<script src="sb/grid-excel-style-filtering-sample-3.js"></script>
<script src="sb/grid-filtering-strategy.js"></script>
<script src="sb/grid-filtering-template.js"></script>
<script src="sb/grid-groupby-expressions.js"></script>
<script src="sb/grid-groupby-paging.js"></script>
<script src="sb/grid-keyboard-mrl-navigation.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions browser/IgBlazorSamples.Gulp/tasks/Transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class SampleSourceFile extends SampleFile {

// remove lines with old Register(IgniteUIBlazor)
var oldLines = this.Content.split("\r\n");
var newLines = [];
var newLines: string [] = [];
for (const line of oldLines) {
if (line.indexOf(".Register(IgniteUIBlazor)") < 0){
newLines.push(line);
Expand Down Expand Up @@ -631,7 +631,7 @@ class Transformer {
public static getRelative(path: string): string {
// let path = filePath;
if (path.indexOf(igConfig.RepositoryName) > -1) {
path = path.split(igConfig.RepositoryName)[1];
path = path.split(igConfig.RepositoryName).pop() as string;
path = path.split("\\").join("/");
// return "." + path;
return "../.." + path;
Expand Down
5 changes: 5 additions & 0 deletions browser/IgBlazorSamples.Gulp/tasks/gulp-samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,16 @@ function getSamples(cb) {
];

samples = [];
console.log(deferredSamples[0]);

gulp.src(sampleSource)
// .pipe(gSort( { asc: false } ))
.pipe(es.map(function(sample, sampleCallback) {
// console.log('Sample: ' + sample.dirname);
let sampleFolder = Transformer.getRelative(sample.dirname);
// console.log('SampleFolder: ' + sampleFolder);
let samplePath = sampleFolder + '/' + sample.basename;
// console.log('SamplePath: ' + samplePath);

// skip samples that were deferred
if (deferredSamples.includes(samplePath)) {
Expand Down Expand Up @@ -231,6 +235,7 @@ function getSamples(cb) {
.pipe(flatten({ "includeParents": -1 }))
.pipe(es.map(function(file, fileCallback) {
let fileDir = Transformer.getRelative(file.dirname);
console.log('PipeFildir: ' + fileDir);
sampleFiles.push(fileDir + "/" + file.basename);
// console.log("get file " + fileDir + "/" + file.basename);
fileCallback(null, file);
Expand Down