Skip to content

Commit a544bc1

Browse files
authored
Fix pipline and some CI improvments (#108)
* bump placeholderapi 2.11.5 * pin github actions versions and use only one workflow * add dependabot * add Upload artifact for all runs * add pull_request also to the trigger
1 parent a5e849a commit a544bc1

File tree

4 files changed

+17
-47
lines changed

4 files changed

+17
-47
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"

.github/workflows/default.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build SmoothTimber
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
46

57
jobs:
68
compile:
@@ -10,9 +12,9 @@ jobs:
1012
java: [ 21 ]
1113
name: Java ${{ matrix.java }} compile
1214
steps:
13-
- uses: actions/checkout@master
15+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
1416
- name: Setup java
15-
uses: actions/setup-java@v2
17+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 #v5.0.0
1618
with:
1719
distribution: 'adopt'
1820
java-version: ${{ matrix.java }}
@@ -22,22 +24,22 @@ jobs:
2224
needs: compile
2325
name: Build Maven project
2426
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/cache@v2
27+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
28+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 #v4.3.0
2729
with:
2830
path: ~/.m2/repository
2931
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3032
restore-keys: |
3133
${{ runner.os }}-maven-
3234
- name: Set up JDK 21
33-
uses: actions/setup-java@v2
35+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 #v5.0.0
3436
with:
3537
distribution: 'adopt'
3638
java-version: 21
3739
- name: Build and test project
3840
run: mvn clean verify
3941
- name: Upload Maven build artifact
40-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
4143
with:
4244
name: SmoothTimber-Artifact
43-
path: target/SmoothTimber-*.jar
45+
path: target/smoothtimber-*.jar

.github/workflows/pullrequest.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
<dependency>
198198
<groupId>me.clip</groupId>
199199
<artifactId>placeholderapi</artifactId>
200-
<version>2.10.9</version>
200+
<version>2.11.5</version>
201201
<scope>provided</scope>
202202
</dependency>
203203

0 commit comments

Comments
 (0)