diff --git a/.github/workflows/docs-pages.yaml b/.github/workflows/docs-pages.yaml index 5dec65e446e..1f53ac53c5e 100644 --- a/.github/workflows/docs-pages.yaml +++ b/.github/workflows/docs-pages.yaml @@ -25,21 +25,28 @@ jobs: ref: ${{ github.event.repository.default_branch }} persist-credentials: false fetch-depth: 0 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.10' + - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 1.8 + distribution: 'adopt' + - name: Set up env run: make -C docs setupenv + - name: Build redirects run: make -C docs redirects + - name: Build docs run: make -C docs multiversion + - name: Deploy docs to GitHub Pages run: ./docs/_utils/deploy.sh env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docs-pr.yaml b/.github/workflows/docs-pr.yaml index 461dd3ce1d8..d67fa7f0d58 100644 --- a/.github/workflows/docs-pr.yaml +++ b/.github/workflows/docs-pr.yaml @@ -22,15 +22,20 @@ jobs: with: persist-credentials: false fetch-depth: 0 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.10' + - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 1.8 + distribution: 'adopt' + - name: Set up env run: make -C docs setupenv + - name: Build docs run: make -C docs test \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 732c9ba581b..3fa59b48bf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,10 +21,10 @@ jobs: steps: - name: Checkout Repository - 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: '8' distribution: 'adopt' diff --git a/.github/workflows/tests@v1.yml b/.github/workflows/tests@v1.yml index 162ed7a75e6..4bdd37794fd 100644 --- a/.github/workflows/tests@v1.yml +++ b/.github/workflows/tests@v1.yml @@ -20,10 +20,10 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java-version }} - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java-version }} distribution: 'adopt' @@ -43,10 +43,10 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java-version }} - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java-version }} distribution: 'adopt' @@ -61,10 +61,10 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '8' distribution: 'adopt' @@ -73,15 +73,15 @@ jobs: run: mvn -B test -Dfmt.skip=true -Dclirr.skip=true -Danimal.sniffer.skip=true - name: Copy test results - if: success() || failure() + if: failure() run: | shopt -s globstar mkdir unit cp --parents ./**/target/*-reports/*.xml unit/ - name: Upload test results - uses: actions/upload-artifact@v2 - if: success() || failure() + uses: actions/upload-artifact@v4 + if: failure() with: name: test-results path: "*/**/target/*-reports/*.xml" @@ -93,10 +93,10 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Python 3 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.11' @@ -124,16 +124,16 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '8' distribution: 'adopt' - name: Setup Python 3 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.11' @@ -148,22 +148,22 @@ jobs: run: mvn -B verify -Pshort -Dcassandra.version=${{ matrix.cassandra-version }} -Dfmt.skip=true -Dclirr.skip=true -Danimal.sniffer.skip=true - name: Copy test results - if: success() || failure() + if: failure() run: | shopt -s globstar mkdir cassandra-${{ matrix.cassandra-version }} cp --parents ./**/target/*-reports/*.xml cassandra-${{ matrix.cassandra-version }}/ - name: Upload test results - uses: actions/upload-artifact@v2 - if: success() || failure() + uses: actions/upload-artifact@v4 + if: failure() with: name: test-results path: "*/**/target/*-reports/*.xml" - name: Upload CCM logs - uses: actions/upload-artifact@v2 - if: ${{ failure() }} + uses: actions/upload-artifact@v4 + if: failure() with: name: ccm-logs-cassandra-${{ matrix.cassandra-version }} path: /tmp/*-0/ccm*/node*/logs/* @@ -181,16 +181,16 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '8' distribution: 'adopt' - name: Setup Python 3 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.11' @@ -206,22 +206,22 @@ jobs: run: mvn -B verify -Pshort -Dscylla.version=${{ matrix.scylla-version }} -Dfmt.skip=true -Dclirr.skip=true -Danimal.sniffer.skip=true - name: Copy test results - if: success() || failure() + if: failure() run: | shopt -s globstar mkdir scylla-${{ matrix.scylla-version }} cp --parents ./**/target/*-reports/*.xml scylla-${{ matrix.scylla-version }}/ - name: Upload test results - uses: actions/upload-artifact@v2 - if: success() || failure() + uses: actions/upload-artifact@v4 + if: failure() with: - name: test-results + name: test-results-${{ matrix.scylla-version }} path: "*/**/target/*-reports/*.xml" - name: Upload CCM logs - uses: actions/upload-artifact@v2 - if: ${{ failure() }} + uses: actions/upload-artifact@v4 + if: failure() with: name: ccm-logs-scylla-${{ matrix.scylla-version }} path: /tmp/*-0/ccm*/node*/logs/*