Skip to content

Commit

Permalink
Do not install Java in an explicit step (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Apr 15, 2024
1 parent 68d8a70 commit 5a2be70
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/dance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ jobs:
with:
cache-key: dance

- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'

- name: Install Task
run: go generate -x
working-directory: tools
Expand Down
5 changes: 2 additions & 3 deletions tests/java-example-auth-scram-sha-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -ex

# enables Maven exceptions
export MAVEN_OPTS='-ea'
export MAVEN_OPTS='-enableassertions'

mvn compile exec:java -Dexec.mainClass=com.start.Connection \
-Dexec.args="mongodb://user:password@localhost:27017/?replicaSet=rs0&authMechanism=SCRAM-SHA-1"
-Dexec.args="mongodb://user:password@localhost:27017/?replicaSet=rs0&authMechanism=SCRAM-SHA-1"
5 changes: 2 additions & 3 deletions tests/java-example-auth-scram-sha-256.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -ex

# enables Maven exceptions
export MAVEN_OPTS='-ea'
export MAVEN_OPTS='-enableassertions'

mvn compile exec:java -Dexec.mainClass=com.start.Connection \
-Dexec.args="mongodb://user:password@localhost:27017/?replicaSet=rs0&authMechanism=SCRAM-SHA-256"
-Dexec.args="mongodb://user:password@localhost:27017/?replicaSet=rs0&authMechanism=SCRAM-SHA-256"
5 changes: 2 additions & 3 deletions tests/java-example-auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -ex

# enables Maven exceptions
export MAVEN_OPTS='-ea'
export MAVEN_OPTS='-enableassertions'

mvn compile exec:java -Dexec.mainClass=com.start.Connection \
-Dexec.args="mongodb://user:password@localhost:27017/?authMechanism=PLAIN"
-Dexec.args="mongodb://user:password@localhost:27017/?authMechanism=PLAIN"
5 changes: 2 additions & 3 deletions tests/java-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -ex

# enables Maven exceptions
export MAVEN_OPTS='-ea'
export MAVEN_OPTS='-enableassertions'

mvn compile exec:java -Dexec.mainClass=com.start.Connection \
-Dexec.args="mongodb://localhost:27017/"
-Dexec.args="mongodb://localhost:27017/"

0 comments on commit 5a2be70

Please sign in to comment.