diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8ac6b8c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index c85953d..a52bbd2 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -1,6 +1,8 @@ name: Build SmoothTimber -on: [push] +on: + push: + pull_request: jobs: compile: @@ -10,9 +12,9 @@ jobs: java: [ 21 ] name: Java ${{ matrix.java }} compile steps: - - uses: actions/checkout@master + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 - name: Setup java - uses: actions/setup-java@v2 + uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 #v5.0.0 with: distribution: 'adopt' java-version: ${{ matrix.java }} @@ -22,22 +24,22 @@ jobs: needs: compile name: Build Maven project steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 + - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 #v4.3.0 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Set up JDK 21 - uses: actions/setup-java@v2 + uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 #v5.0.0 with: distribution: 'adopt' java-version: 21 - name: Build and test project run: mvn clean verify - name: Upload Maven build artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2 with: name: SmoothTimber-Artifact - path: target/SmoothTimber-*.jar + path: target/smoothtimber-*.jar diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml deleted file mode 100644 index 19a5ddf..0000000 --- a/.github/workflows/pullrequest.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Build SmoothTimber - -on: [pull_request] - -jobs: - compile: - runs-on: ubuntu-latest - strategy: - matrix: - java: [ 21 ] - name: Java ${{ matrix.java }} compile - steps: - - uses: actions/checkout@master - - name: Setup java - uses: actions/setup-java@v2 - with: - distribution: 'adopt' - java-version: ${{ matrix.java }} - - run: mvn clean compile - build: - runs-on: ubuntu-latest - needs: compile - name: Build Maven project - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - name: Set up JDK 21 - uses: actions/setup-java@v2 - with: - distribution: 'adopt' - java-version: 21 - - name: Build and test project - run: mvn clean verify diff --git a/pom.xml b/pom.xml index 7fd9076..1a2fdde 100644 --- a/pom.xml +++ b/pom.xml @@ -197,7 +197,7 @@ me.clip placeholderapi - 2.10.9 + 2.11.5 provided