SOLR-17508 Port BATS tests to Powershell (Pester) #2
Workflow file for this run
This file contains hidden or 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: Powershell Pester Tests | |
| on: | |
| push: | |
| branches: [ main, SOLR-17508-* ] | |
| paths: | |
| - 'solr/packaging/powershell-tests/**' | |
| - 'solr/packaging/build.gradle' | |
| - 'solr/bin/solr.cmd' | |
| - 'solr/bin/solr.in.cmd' | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| pester-tests: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Build Solr distribution | |
| run: | | |
| cd solr/packaging | |
| gradle installFullDist | |
| shell: powershell | |
| - name: Run Pester tests | |
| run: | | |
| cd solr/packaging | |
| gradle pesterTests | |
| shell: powershell | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pester-test-results | |
| path: solr/packaging/build/test-output/ |