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

Release/v1.0.0 #229

Closed
wants to merge 6 commits into from
Closed
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
45 changes: 27 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,75 +4,83 @@ on:
push:
branches:
- main
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
Win2019-x64-pwsh:
name: Server 2019 - PowerShell - x64
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Perform a Pester test from the command-line
shell: pwsh
run: ./Tasks/build.ps1 -Bootstrap -Test
run: ./tasks/build.ps1 -Test

Win2019-x86-pwsh:
name: Server 2019 - PowerShell - x86
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Perform a Pester test from the command-line
shell: pwsh
run: |
$Pwsh32 = .github/workflows/pwsh32.ps1
& $Pwsh32 -File ./Tasks/build.ps1 -Bootstrap -Test
& $Pwsh32 -File ./tasks/build.ps1 -Test

Win2019-x64-winpwsh:
name: Server 2019 - Windows PowerShell - x64
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Perform a Pester test from the command-line
shell: powershell
run: ./Tasks/build.ps1 -Bootstrap -Test
run: ./tasks/build.ps1 -Test

Win2019-x86-winpwsh:
name: Server 2019 - Windows PowerShell - x86
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Perform a Pester test from the command-line
shell: powershell
# TODO: This could be problematic with hardcoding
run: C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -File ./Tasks/build.ps1 -Bootstrap -Test
run: C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -File ./tasks/build.ps1 -Test

build-and-oat-module:
name: Build Module and OAT
needs: ["Win2019-x64-pwsh", "Win2019-x64-winpwsh", "Win2019-x86-pwsh", "Win2019-x86-winpwsh"]
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Test Coverage
shell: pwsh
run: |
./tasks/build.ps1 -Test
- name: Compile Module
shell: pwsh
run: ./Tasks/build.ps1 -Bootstrap -Compile
run: ./tasks/build.ps1 -Compile
- name: OAT
shell: pwsh
env:
# Use the compiled module for testing
BURNTTOAST_MODULE_ROOT: './Output/BurntToast/BurntToast.psd1'
run: |
./Tasks/build.ps1 -Test -CodeCoverage
./tasks/build.ps1 -Test
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: test-results
path: "*.xml"
- name: Upload PowerShell Module
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: burnttoast-module
path: "./Output/BurntToast/"
Expand All @@ -83,17 +91,18 @@ jobs:
runs-on: ubuntu-latest
if: always()
steps:
- uses: actions/checkout@v3
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: test-results
path: artifacts
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: artifacts/**/TestResults.xml
- uses: codecov/codecov-action@v2
if: always()
- name: Publish Code Coverage Results to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: artifacts/CoverageResults.xml
files: artifacts/CoverageResults.xml
79 changes: 0 additions & 79 deletions Azure-Pipelines/release.ps1

This file was deleted.

86 changes: 0 additions & 86 deletions BurntToast/BurntToast.psd1

This file was deleted.

59 changes: 0 additions & 59 deletions BurntToast/BurntToast.psm1

This file was deleted.

27 changes: 0 additions & 27 deletions BurntToast/Private/Test-BTAudioPath.ps1

This file was deleted.

Loading
Loading