diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index c63f8d17c..32b10cbd4 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -13,56 +13,43 @@ jobs: benchmarks: name: Benchmarks runs-on: ubuntu-latest + permissions: + contents: write strategy: matrix: benchmark: [codegen, dao] steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - id: commits - name: Count Commits - run: echo "count=$(git rev-list --count HEAD --since='last week')" >> $GITHUB_OUTPUT - - id: previous - name: Get Last Release - if: steps.commits.outputs.count > 0 - run: echo "version=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT + - id: last_release + name: Fetch last release info + run: echo "tag=$(gh release view --json tagName --jq '.tagName')" >> $GITHUB_OUTPUT + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - id: java name: Setup Java - if: steps.commits.outputs.count > 0 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ env.JAVA_VERSION }} java-package: ${{ env.JAVA_PACKAGE }} architecture: ${{ env.JAVA_ARCH }} distribution: ${{ env.JAVA_DISTRO }} - - id: cache - name: Cache Maven Repository - if: steps.commits.outputs.count > 0 - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: run-benchmark name: Run Benchmark [${{ matrix.benchmark }}] - if: steps.commits.outputs.count > 0 run: mvn --batch-mode --projects yosql-benchmarks/yosql-benchmarks-${{ matrix.benchmark }} --also-make --activate-profiles benchmarks verify --define org.slf4j.simpleLogger.log.yosql=warn --define skipTests 2>&1 1> build.log - id: copy-results name: Copy ${{ matrix.benchmark }} Results - if: steps.commits.outputs.count > 0 - run: cp --force ./yosql-benchmarks/yosql-benchmarks-${{ matrix.benchmark }}/target/benchmark/yosql-benchmarks-${{ matrix.benchmark }}.json ./yosql-website/content/benchmarks/results/yosql-benchmarks-${{ matrix.benchmark }}-${{ steps.previous.outputs.version }}.json + run: cp --force ./yosql-benchmarks/yosql-benchmarks-${{ matrix.benchmark }}/target/benchmark/yosql-benchmarks-${{ matrix.benchmark }}.json ./yosql-website/content/benchmarks/results/yosql-benchmarks-${{ matrix.benchmark }}-${{ steps.last_release.outputs.tag }}.json - id: replace-results name: Replace CURRENT ${{ matrix.benchmark }} Results - if: steps.commits.outputs.count > 0 run: cp --force ./yosql-benchmarks/yosql-benchmarks-${{ matrix.benchmark }}/target/benchmark/yosql-benchmarks-${{ matrix.benchmark }}.json ./yosql-website/content/benchmarks/results/yosql-benchmarks-${{ matrix.benchmark }}-CURRENT.json - id: push name: Push Changes - if: steps.commits.outputs.count > 0 - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: Update benchmark data for ${{ steps.previous.outputs.version }} + commit_message: Update benchmark data for ${{ steps.last_release.outputs.tag }} file_pattern: yosql-website/*.json diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0fbcb3bda..77e5829aa 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -2,41 +2,25 @@ name: CodeQL on: schedule: - cron: 44 20 * * 6 -env: - JAVA_VERSION: 17 - JAVA_PACKAGE: jdk - JAVA_ARCH: x64 - JAVA_DISTRO: temurin - GRAAL_VERSION: latest jobs: analyze: name: Analyze runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - language: [ java ] steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} - java-version: ${{ env.JAVA_VERSION }} - components: native-image + distribution: graalvm + java-version: 17 github-token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: - languages: ${{ matrix.language }} + languages: java - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml new file mode 100644 index 000000000..9516964a4 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,15 @@ +name: Dependabot auto-merge +on: pull_request +permissions: + contents: write + pull-requests: write +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --rebase "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml deleted file mode 100644 index 32cb27845..000000000 --- a/.github/workflows/qodana.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Qodana Scan -on: - workflow_dispatch: -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - id: checkout - name: Clone Git Repository - uses: actions/checkout@v3 - with: - fetch-depth: 0 # required in order to get all tags - - id: qodana - name: Qodana Scan - uses: JetBrains/qodana-action@v2022.3.4 diff --git a/.github/workflows/release-announcement.yml b/.github/workflows/release-announcement.yml index 55059e370..7d4e62ec5 100644 --- a/.github/workflows/release-announcement.yml +++ b/.github/workflows/release-announcement.yml @@ -11,35 +11,31 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - id: commits - name: Count Commits - run: echo "count=$(git rev-list --count HEAD --since='last week')" >> $GITHUB_OUTPUT - - id: previous - name: Get Last Release - if: steps.commits.outputs.count > 0 - run: echo "version=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT + - id: last_release + name: Fetch last release info + run: echo "tag=$(gh release view --json tagName --jq '.tagName')" >> $GITHUB_OUTPUT + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - id: mail name: Send Mail - if: steps.commits.outputs.count > 0 uses: dawidd6/action-send-mail@v3 with: server_address: ${{ secrets.MAIL_SERVER }} server_port: ${{ secrets.MAIL_PORT }} username: ${{ secrets.MAIL_USERNAME }} password: ${{ secrets.MAIL_PASSWORD }} - subject: ${{ github.event.repository.name }} version ${{ steps.previous.outputs.version }} published - body: See https://github.com/metio/yosql/releases/tag/${{ steps.previous.outputs.version }} for details. + subject: ${{ github.event.repository.name }} version ${{ steps.last_release.outputs.tag }} published + body: See https://github.com/metio/yosql/releases/tag/${{ steps.last_release.outputs.tag }} for details. to: ${{ secrets.MAIL_RECIPIENT }} from: ${{ secrets.MAIL_SENDER }} - id: matrix name: Send Matrix Message - if: steps.commits.outputs.count > 0 uses: s3krit/matrix-message-action@v0.0.3 with: room_id: ${{ secrets.MATRIX_ROOM_ID }} access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} - message: ${{ github.event.repository.name }} version [${{ steps.previous.outputs.version }}](https://github.com/metio/yosql/releases/tag/${{ steps.previous.outputs.version }}) published + message: ${{ github.event.repository.name }} version [${{ steps.last_release.outputs.tag }}](https://github.com/metio/yosql/releases/tag/${{ steps.last_release.outputs.tag }}) published server: ${{ secrets.MATRIX_SERVER }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60a4ad14b..f5f96faf2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,32 +8,32 @@ env: JAVA_PACKAGE: jdk JAVA_ARCH: x64 JAVA_DISTRO: temurin - GRAAL_VERSION: latest jobs: prepare: name: Prepare Release runs-on: ubuntu-latest outputs: commit_count: ${{ steps.commits.outputs.count }} + previous_version: ${{ steps.last_release.outputs.version }} release_version: ${{ steps.release.outputs.version }} - previous_version: ${{ steps.previous.outputs.version }} steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + - id: last_release + name: Fetch last release info + run: echo "tag=$(gh release view --json tagName --jq '.tagName')" >> $GITHUB_OUTPUT + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - id: commits name: Count Commits - run: echo "count=$(git rev-list --count HEAD --since='last week')" >> $GITHUB_OUTPUT + run: echo "count=$(git rev-list --count ${{ steps.last_release.outputs.tag }}..HEAD)" >> $GITHUB_OUTPUT - id: release name: Create Release Version if: steps.commits.outputs.count > 0 run: echo "version=$(date +'%Y.%-m.%-d')" >> $GITHUB_OUTPUT - - id: previous - name: Get Last Release - if: steps.commits.outputs.count > 0 - run: echo "version=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT - id: timestamp name: Build Timestamp if: steps.commits.outputs.count > 0 @@ -46,11 +46,11 @@ jobs: - id: checkout name: Clone Git Repository if: needs.prepare.outputs.commit_count > 0 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: java name: Setup Java if: needs.prepare.outputs.commit_count > 0 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ env.JAVA_VERSION }} java-package: ${{ env.JAVA_PACKAGE }} @@ -59,15 +59,7 @@ jobs: server-id: ossrh server-username: MAVEN_CENTRAL_USERNAME server-password: MAVEN_CENTRAL_TOKEN - - id: cache - name: Cache Maven Repository - if: needs.prepare.outputs.commit_count > 0 - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: gpg name: GPG Key if: needs.prepare.outputs.commit_count > 0 @@ -94,25 +86,17 @@ jobs: - id: checkout name: Clone Git Repository if: needs.prepare.outputs.commit_count > 0 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: java name: Setup Java if: needs.prepare.outputs.commit_count > 0 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ env.JAVA_VERSION }} java-package: ${{ env.JAVA_PACKAGE }} architecture: ${{ env.JAVA_ARCH }} distribution: ${{ env.JAVA_DISTRO }} - - id: cache - name: Cache Maven Repository - if: needs.prepare.outputs.commit_count > 0 - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - name: Set release version if: needs.prepare.outputs.commit_count > 0 run: mvn --batch-mode versions:set --define newVersion=${{ needs.prepare.outputs.release_version }} --define generateBackupPoms=false @@ -136,25 +120,17 @@ jobs: - id: checkout name: Clone Git Repository if: needs.prepare.outputs.commit_count > 0 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: java name: Setup Java if: needs.prepare.outputs.commit_count > 0 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ env.JAVA_VERSION }} java-package: ${{ env.JAVA_PACKAGE }} architecture: ${{ env.JAVA_ARCH }} distribution: ${{ env.JAVA_DISTRO }} - - id: cache - name: Cache Maven Repository - if: needs.prepare.outputs.commit_count > 0 - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: gpg name: GPG Key if: needs.prepare.outputs.commit_count > 0 @@ -191,29 +167,20 @@ jobs: - id: checkout name: Clone Git Repository if: needs.prepare.outputs.commit_count > 0 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: graal name: Setup GraalVM if: needs.prepare.outputs.commit_count > 0 uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} + distribution: graalvm java-version: ${{ env.JAVA_VERSION }} - components: native-image github-token: ${{ secrets.GITHUB_TOKEN }} - - id: cache - name: Cache Maven Repository - if: needs.prepare.outputs.commit_count > 0 - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: gpg name: GPG Key if: needs.prepare.outputs.commit_count > 0 - uses: timheuer/base64-to-file@v1.2 + uses: timheuer/base64-to-file@v1 with: fileName: signing.key.asc fileDir: ${{ github.workspace}} @@ -263,7 +230,7 @@ jobs: - id: checkout name: Clone Git Repository if: needs.prepare.outputs.commit_count > 0 - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - id: download diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml index f6db93aa6..62a7a614e 100644 --- a/.github/workflows/update-gradle-wrapper.yml +++ b/.github/workflows/update-gradle-wrapper.yml @@ -13,23 +13,16 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: java name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ env.JAVA_VERSION }} java-package: ${{ env.JAVA_PACKAGE }} architecture: ${{ env.JAVA_ARCH }} distribution: ${{ env.JAVA_DISTRO }} - - id: cache - name: Cache Maven Repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: maven name: Maven Tooling run: mvn --batch-mode install --define skipTests @@ -48,7 +41,7 @@ jobs: uses: gradle/wrapper-validation-action@v1 - id: cpr name: Create Pull Request - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.PAT }} commit-message: Update gradle-wrapper to latest version @@ -67,8 +60,6 @@ jobs: delete-branch: true - name: Enable Pull Request Automerge if: steps.cpr.outputs.pull-request-operation == 'created' - uses: peter-evans/enable-pull-request-automerge@v2 + run: gh pr merge --rebase --auto "${{ steps.cpr.outputs.pull-request-number }}" with: token: ${{ secrets.PAT }} - pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} - merge-method: rebase diff --git a/.github/workflows/update-parent.yml b/.github/workflows/update-parent.yml index 8f67c4c2a..39455bfd7 100644 --- a/.github/workflows/update-parent.yml +++ b/.github/workflows/update-parent.yml @@ -11,25 +11,20 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ env.JAVA_VERSION }} java-package: ${{ env.JAVA_PACKAGE }} architecture: ${{ env.JAVA_ARCH }} distribution: ${{ env.JAVA_DISTRO }} - - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - name: Update parent run: mvn --batch-mode --define generateBackupPoms=false versions:update-parent - id: cpr name: Create Pull Request - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.PAT }} commit-message: Update parent to latest version @@ -49,8 +44,6 @@ jobs: delete-branch: true - name: Enable Pull Request Automerge if: steps.cpr.outputs.pull-request-operation == 'created' - uses: peter-evans/enable-pull-request-automerge@v2 + run: gh pr merge --rebase --auto "${{ steps.cpr.outputs.pull-request-number }}" with: token: ${{ secrets.PAT }} - pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} - merge-method: rebase diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index acd141240..ac0b7f4ee 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -1,12 +1,9 @@ name: Verify Commits on: - push: - branches: [ main ] pull_request: branches: [ main ] env: JAVA_VERSION: 17 - GRAAL_VERSION: latest jobs: maven: name: Build Maven Tooling on ${{ matrix.os }} @@ -20,23 +17,15 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: graal name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} + distribution: graalvm java-version: ${{ env.JAVA_VERSION }} - components: native-image github-token: ${{ secrets.GITHUB_TOKEN }} - - id: cache - name: Cache Maven Repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: maven name: Maven Tooling run: mvn --batch-mode --projects yosql-tooling/yosql-tooling-maven,yosql-examples/yosql-examples-common --also-make install @@ -55,23 +44,15 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: graal name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} + distribution: graalvm java-version: ${{ env.JAVA_VERSION }} - components: native-image github-token: ${{ secrets.GITHUB_TOKEN }} - - id: cache - name: Cache Maven Repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: maven name: Maven Tooling run: mvn --batch-mode --projects yosql-tooling/yosql-tooling-dagger,yosql-examples/yosql-examples-common --also-make install @@ -90,23 +71,15 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: graal name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} + distribution: graalvm java-version: ${{ env.JAVA_VERSION }} - components: native-image github-token: ${{ secrets.GITHUB_TOKEN }} - - id: cache - name: Cache Maven Repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: maven name: Ant Tooling run: mvn --batch-mode --projects yosql-tooling/yosql-tooling-ant --also-make verify @@ -131,23 +104,15 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: graal name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} + distribution: graalvm java-version: ${{ env.JAVA_VERSION }} - components: native-image github-token: ${{ secrets.GITHUB_TOKEN }} - - id: cache - name: Cache Maven Repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: maven name: CLI Tooling run: mvn --batch-mode --projects yosql-tooling/yosql-tooling-cli --also-make --define skipNativeBuild=false verify @@ -194,23 +159,15 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: graal name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} + distribution: graalvm java-version: ${{ env.JAVA_VERSION }} - components: native-image github-token: ${{ secrets.GITHUB_TOKEN }} - - id: cache - name: Cache Maven Repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: maven name: Maven Tooling run: mvn --batch-mode --projects yosql-tooling/yosql-tooling-maven --also-make install @@ -229,7 +186,7 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: hugo name: Setup Hugo uses: peaceiris/actions-hugo@v2 @@ -239,18 +196,10 @@ jobs: name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} + distribution: graalvm java-version: ${{ env.JAVA_VERSION }} - components: native-image github-token: ${{ secrets.GITHUB_TOKEN }} - - id: cache - name: Cache Maven Repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: maven name: Maven Tooling run: mvn --batch-mode --projects yosql-website --also-make --define skipTests install diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 242a75fa2..940f1d61a 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -8,7 +8,6 @@ on: - yosql-website/** env: JAVA_VERSION: 17 - GRAAL_VERSION: latest PROJECT_URL: yosql.projects.metio.wtf jobs: website: @@ -17,7 +16,7 @@ jobs: steps: - id: checkout name: Clone Git Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # required in order to get all tags - id: hugo @@ -29,18 +28,10 @@ jobs: name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - version: ${{ env.GRAAL_VERSION }} + distribution: graalvm java-version: ${{ env.JAVA_VERSION }} - components: native-image github-token: ${{ secrets.GITHUB_TOKEN }} - - id: cache - name: Cache Maven Repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - id: previous name: Get Last Release run: echo "version=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT