This repository was archived by the owner on May 3, 2023. It is now read-only.
File tree 4 files changed +47
-1
lines changed
src/main/java/net/httpclient/wrapper/ratelimiter
4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Maven deployments
2
+
3
+ on : [release]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - name : Set up JDK 17
11
+ uses : actions/setup-java@v2
12
+ with :
13
+ java-version : ' 17'
14
+ distribution : ' adopt'
15
+ - name : Deploy to GitHub
16
+ run : mvn --batch-mode deploy
17
+ env :
18
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Java unit tests
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Checkout
10
+ uses : actions/checkout@v1
11
+ - name : Set up JDK 17
12
+ uses : actions/setup-java@v2
13
+ with :
14
+ java-version : ' 17'
15
+ distribution : ' adopt'
16
+ - name : Build
17
+ run : mvn --batch-mode -DskipTests package
18
+ - name : Test
19
+ run : mvn --batch-mode -Dmaven.test.failure.ignore=true test
20
+ - name : Report
21
+ uses : dorny/test-reporter@v1
22
+ if : always()
23
+ with :
24
+ name : Maven Tests
25
+ path : target/surefire-reports/*.xml
26
+ reporter : java-junit
27
+ fail-on-error : true
Original file line number Diff line number Diff line change 40
40
# This command remove the target directory
41
41
clean :
42
42
mvn clean
43
+ rm -rf target | true
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public synchronized void acquire() {
42
42
Thread .sleep (durationToSleep .toMillis ());
43
43
lastAcquire = Instant .now ();
44
44
} catch (InterruptedException e ) {
45
- e . printStackTrace ( );
45
+ throw ( new RuntimeException ( e ) );
46
46
}
47
47
}
48
48
You can’t perform that action at this time.
0 commit comments