Skip to content

Commit

Permalink
fake builds
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Oct 13, 2023
1 parent 45019e1 commit f4b0d17
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,27 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
# - name: Set up JDK 11
# uses: actions/setup-java@v3

with:
java-version: '11'
distribution: 'adopt'
# with:
# java-version: '11'
# distribution: 'adopt'

# - name: Dependency Test
# run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q

- name: Dependency Test
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
# - name: Build and Test with Maven
# run: mvn --batch-mode -Dtest=!**/OpenCV* test -q

- name: Build and Test with Maven
run: mvn --batch-mode -Dtest=!**/OpenCV* test -q
# - name: Package with Maven
# run: mvn package -DskipTests

- name: Package with Maven
run: mvn package -DskipTests
- name: Fake Build
run: |
mkdir -p target
echo ${{ github.sha }} > myrobotlab.zip
# - name: Determine Next Version
# id: next_version
# run: |
# current_version=$(cat version.txt)
# major_minor="1.1."
# increment_version=$((current_version + 1))
# next_version="${major_minor}${increment_version}"
# echo "$next_version" > version.txt
# echo "next_version=${next_version}" >> $GITHUB_OUTPUT
- name: Get next version
uses: reecetech/[email protected]
id: version
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/org/myrobotlab/service/TestCatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.util.Map;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -84,19 +85,19 @@ public Ball() {

boolean isLocal = true;

public Set<String> onCreated = new HashSet<>();
public Set<String> onCreated = ConcurrentHashMap.newKeySet();

public Map<String, Registration> onRegistered = new HashMap<String, Registration>();

public Set<String> onStarted = new HashSet<>();
public Set<String> onStarted = ConcurrentHashMap.newKeySet();

public Set<String> onReleased = new HashSet<>();
public Set<String> onReleased = ConcurrentHashMap.newKeySet();

public Set<String> onStopped = new HashSet<>();
public Set<String> onStopped = ConcurrentHashMap.newKeySet();

public List<Long> longs = new ArrayList<>();

public Set<PinData[]> pinSet = new HashSet<>();
public Set<PinData[]> pinSet = ConcurrentHashMap.newKeySet();

public String[] activePins = null;

Expand Down

0 comments on commit f4b0d17

Please sign in to comment.