Ubuntu Java Client Tests main Branch Server #950
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: Ubuntu Java Client Tests main Branch Server | |
on: | |
schedule: | |
- cron: "0 5 * * *" | |
workflow_dispatch: | |
jobs: | |
ubuntu-java-client-tests-latest: | |
runs-on: ubuntu-latest | |
env: | |
GODEBUG: x509sha1=1 | |
steps: | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
- name: Install nats-server | |
run: | | |
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@main | PREFIX=. sh | |
sudo mv nats-server /usr/local/bin | |
nats-server -v | |
- name: Check out Java client code | |
uses: actions/checkout@v3 | |
with: | |
repository: nats-io/nats.java | |
- name: Run Client Unit Tests | |
run: chmod +x gradlew && ./gradlew test |