-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CI as github action. Required small adjustments in build.ps1. Also created a cron job for weekly builds. * fix name of upload test results. * Add skip publisher check to pester install. * Change tests to not use PS7 commands for path combination. Also mock PSStyle variable. * Drop support for Windows PowerShell. It's not possible with the use of System.Text.Json. Add another test result file to gitignore. * Remove mock of PSStyle variable.
- Loading branch information
1 parent
8d57878
commit 8aafc84
Showing
6 changed files
with
104 additions
and
25 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,46 @@ | ||
name: TextUtility CI Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
ci: | ||
name: Build and Test | ||
strategy: | ||
matrix: | ||
os: [ windows-latest, macos-latest, ubuntu-latest ] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
cache: true | ||
cache-dependency-path: '**/*.csproj' | ||
|
||
- name: Install PSResources | ||
run: ./build.ps1 -Bootstrap | ||
shell: pwsh | ||
|
||
- name: Build | ||
run: ./build.ps1 -Configuration Release | ||
shell: pwsh | ||
|
||
- name: Test | ||
run: ./build.ps1 -Test -NoBuild | ||
shell: pwsh | ||
|
||
- name: Upload test results | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: TextUtility-tests-${{ matrix.os }} | ||
path: testResults.xml |
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