Merge pull request #1394 from MichaelRossner/patch-3 #261
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: Execute dtcw.ps1 test suite | |
on: | |
push: | |
branches-ignore: | |
- gh-pages | |
pull_request: | |
branches: [ ng ] | |
paths: | |
- 'dtcw.ps1' | |
- 'src/test/groovy/docToolchain/DtcwOnPowershellSpec.groovy' | |
workflow_dispatch: {} | |
jobs: | |
test-dtcw-ps1-spock: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
java: [14] | |
jdk: [temurin] | |
fail-fast: false | |
name: Execute dtcw spock test suite - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: install powershell | |
shell: bash | |
run: | | |
if [ "$RUNNER_OS" == "Windows" ]; then | |
echo "pwsh already installed" | |
else | |
sudo apt-get install -y wget apt-transport-https software-properties-common | |
wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb" | |
sudo dpkg -i packages-microsoft-prod.deb | |
rm packages-microsoft-prod.deb | |
sudo apt-get update | |
sudo apt-get install -y powershell | |
fi | |
- name: Run tests | |
run: | | |
./gradlew test --info --tests=DtcwOnPowershellSpec | |
- name: Archive Spock dtcw results | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: spock-dtcw-report-${{ matrix.os }} | |
path: build/reports/tests/test/ |