Enable creation of ApplicationData folder if it doesn't exist yet #43
Workflow file for this run
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
name: Build and Test | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
- release/* | |
push: | |
branches: | |
- master | |
- develop | |
workflow_dispatch: | |
jobs: | |
build_module: | |
name: Build Module | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PowerShell module cache | |
id: cacher | |
uses: actions/cache@v4 | |
with: | |
path: "~/.local/share/powershell/Modules" | |
key: ${{ runner.os }}-PSModules | |
- name: Setup | |
shell: pwsh | |
run: | | |
./Tools/setup.ps1 | |
Invoke-Build -Task ShowInfo | |
- name: Build | |
shell: pwsh | |
run: | | |
Invoke-Build -Task Clean, Build | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Release | |
path: ./Release/ | |
test_on_windows_v5: | |
name: Test Module on Windows (PS v5) | |
needs: build_module | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download | |
uses: actions/download-artifact@v4 | |
with: | |
name: Release | |
path: ./Release/ | |
- name: Setup PowerShell module cache | |
id: cacher | |
uses: actions/cache@v4 | |
with: | |
path: "~/.local/share/powershell/Modules" | |
key: ${{ runner.os }}-PSModules | |
- name: Setup | |
shell: powershell | |
run: | | |
./Tools/setup.ps1 | |
Invoke-Build -Task ShowInfo | |
- name: Test | |
shell: powershell | |
run: | | |
Invoke-Build -Task Test | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}v5-Unit-Tests | |
path: Test*.xml | |
if: ${{ always() }} | |
test_on_windows_v7: | |
name: Test Module on Windows (PS v7) | |
needs: build_module | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download | |
uses: actions/download-artifact@v4 | |
with: | |
name: Release | |
path: ./Release/ | |
- name: Setup PowerShell module cache | |
id: cacher | |
uses: actions/cache@v4 | |
with: | |
path: "~/.local/share/powershell/Modules" | |
key: ${{ runner.os }}-PSModules | |
- name: Setup | |
shell: pwsh | |
run: | | |
./Tools/setup.ps1 | |
Invoke-Build -Task ShowInfo | |
- name: Test | |
shell: pwsh | |
run: | | |
Invoke-Build -Task Test | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}v7-Unit-Tests | |
path: Test*.xml | |
if: ${{ always() }} | |
test_on_ubuntu: | |
name: Test Module on Ubuntu | |
needs: build_module | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download | |
uses: actions/download-artifact@v4 | |
with: | |
name: Release | |
path: ./Release/ | |
- name: Setup PowerShell module cache | |
id: cacher | |
uses: actions/cache@v4 | |
with: | |
path: "~/.local/share/powershell/Modules" | |
key: ${{ runner.os }}-PSModules | |
- name: Setup | |
shell: pwsh | |
run: | | |
./Tools/setup.ps1 | |
Invoke-Build -Task ShowInfo | |
- name: Test | |
shell: pwsh | |
run: | | |
Invoke-Build -Task Test | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}-Unit-Tests | |
path: Test*.xml | |
if: ${{ always() }} | |
test_on_macos: | |
name: Test Module on macOS | |
needs: build_module | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download | |
uses: actions/download-artifact@v4 | |
with: | |
name: Release | |
path: ./Release/ | |
- name: Setup PowerShell module cache | |
id: cacher | |
uses: actions/cache@v4 | |
with: | |
path: "~/.local/share/powershell/Modules" | |
key: ${{ runner.os }}-PSModules | |
- name: Setup | |
shell: pwsh | |
run: | | |
./Tools/setup.ps1 | |
Invoke-Build -Task ShowInfo | |
- name: Test | |
shell: pwsh | |
run: | | |
Invoke-Build -Task Test | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}-Unit-Tests | |
path: Test*.xml | |
if: ${{ always() }} | |
test_against_cloud: | |
env: | |
JiraURI: ${{ secrets.JiraURI }} | |
JiraUser: ${{ secrets.JiraUser }} | |
JiraPass: ${{ secrets.JiraPass }} | |
name: Test Module against Cloud Server | |
needs: build_module | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download | |
uses: actions/download-artifact@v4 | |
with: | |
name: Release | |
path: ./Release/ | |
- name: Setup PowerShell module cache | |
id: cacher | |
uses: actions/cache@v4 | |
with: | |
path: "~/.local/share/powershell/Modules" | |
key: ${{ runner.os }}-PSModules | |
- name: Setup | |
shell: pwsh | |
run: | | |
./Tools/setup.ps1 | |
Invoke-Build -Task ShowInfo | |
- name: Test | |
shell: pwsh | |
run: | | |
Invoke-Build -Task Test -Tag "Integration" -ExcludeTag "" | |
if: ${{ env.JiraURI != '' }} | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}-Unit-Tests | |
path: Test*.xml | |
if: ${{ always() }} |