-
Notifications
You must be signed in to change notification settings - Fork 815
42 lines (35 loc) · 995 Bytes
/
pester-tests.yml
File metadata and controls
42 lines (35 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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: |
.\gradlew.bat --no-daemon -p solr/packaging installFullDist
shell: powershell
- name: Run Pester tests
run: |
.\gradlew.bat --no-daemon -p solr/packaging 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/