-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fec563
commit 1860c63
Showing
9 changed files
with
133 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Create pull request | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
commit-message: Updated API version | ||
base: aspose-words/Aspose.Words-for-.NET/main | ||
branch: falleretic/Aspose.Words-for-.NET/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Run API tests | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
- name: Install fonts | ||
run: dism /online /enable-feature /featurename:ServerCoreFonts-NonCritical-Fonts-TrueType /Source:O:\ /LimitAccess | ||
- name: Build ENV | ||
run: mkdir ./Examples/Data/License/ | ||
- name: Add total license | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: 'Aspose.Total.NET.lic' | ||
fileDir: './Examples/Data/License/' | ||
encodedString: ${{ secrets.API_LICENSE }} | ||
- name: Add words license | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: 'Aspose.Words.NET.lic' | ||
fileDir: './Examples/Data/License/' | ||
encodedString: ${{ secrets.API_WORDS_LICENSE }} | ||
- name: Restore dependencies | ||
run: dotnet restore ./Examples/ApiExamples/ApiExamples/ApiExamples.csproj | ||
- name: Build | ||
run: dotnet build --no-restore ./Examples/ApiExamples/ApiExamples/ApiExamples.csproj | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal --logger trx --results-directory "TestResults" ./Examples/ApiExamples/ApiExamples/ApiExamples.csproj | ||
- name: Upload dotnet test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results | ||
path: TestResults | ||
# Use always() to always run this step to publish test results when there are test failures | ||
if: ${{ always() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Update nuget packages | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
update_packages: | ||
runs-on: windows-latest | ||
steps: | ||
# Sync branch | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-dotnet@v3 | ||
|
||
# Restore packages | ||
- name: Install dependencies ApiExamples | ||
run: dotnet restore ./Examples/ApiExamples/ApiExamples/ApiExamples.csproj | ||
- name: Install dependencies DocsExamples | ||
run: dotnet restore ./Examples/DocsExamples/DocsExamples/DocsExamples.csproj | ||
- name: Install dependencies ApiExamples.MAUI | ||
run: dotnet restore ./Examples/ApiExamples/Runner.MAUI/Runner.MAUI.csproj | ||
- name: Install dependencies Docker | ||
run: dotnet restore ./Examples/DocsExamples/Docker/Docker.csproj | ||
- name: Install dependencies DocumentExplorer | ||
run: dotnet restore ./Examples/DocsExamples/DocumentExplorer/DocumentExplorer.csproj | ||
|
||
# Update packages | ||
- name: Install dotnet-outdated-tool | ||
run: dotnet tool install --global dotnet-outdated-tool | ||
|
||
- name: Update packages | ||
run: | | ||
cd Examples | ||
OUTPUT=$(dotnet outdated -r) | ||
if [[ $OUTPUT =~ "No outdated dependencies" ]]; then | ||
echo "::set-output name=updated::false" | ||
else | ||
dotnet outdated -u -r | ||
echo "::set-output name=updated::true" | ||
fi | ||
shell: bash | ||
|
||
# Check build | ||
- name: Build ApiExamples | ||
run: dotnet build ./Examples/ApiExamples/ApiExamples/ApiExamples.csproj | ||
- name: Build ApiExamples.MAUI | ||
run: dotnet build ./Examples/ApiExamples/Runner.MAUI/Runner.MAUI.csproj | ||
- name: Build DocsExamples | ||
run: dotnet build ./Examples/DocsExamples/DocsExamples/DocsExamples.csproj | ||
|
||
# Commit changes | ||
- name: Commit changes | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "Updated API versions" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters