Windows Java Client Tests v2.8.4 Server #497
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: Windows Java Client Tests v2.8.4 Server | |
on: | |
schedule: | |
- cron: "0 5 * * *" | |
workflow_dispatch: | |
jobs: | |
windows-java-client-tests: | |
runs-on: windows-latest | |
env: | |
GODEBUG: x509sha1=1 | |
steps: | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
- name: Setup GO | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22.2' | |
- name: Check out Java client code | |
uses: actions/checkout@v3 | |
with: | |
repository: nats-io/nats.java | |
- name: Install Nats Server | |
run: | | |
git clone https://github.com/nats-io/nats-server.git | |
cd nats-server | |
git checkout tags/v2.8.4 -b nscustom | |
go get | |
go build main.go | |
copy /Y main.exe ..\nats-server.exe | |
cd .. | |
rd /S /Q nats-server | |
nats-server -v | |
shell: cmd | |
- name: Run Client Unit Tests | |
run: gradlew.bat test | |
shell: cmd |