diff --git a/.github/actions/docker-buildx-push/action.yaml b/.github/actions/docker-buildx-push/action.yaml index 37c3e7f4c6..d377b43347 100644 --- a/.github/actions/docker-buildx-push/action.yaml +++ b/.github/actions/docker-buildx-push/action.yaml @@ -48,9 +48,9 @@ runs: flavor: | latest=false - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GHCR uses: docker/login-action@v3 if: inputs.ghcr-token != '' && github.event_name != 'pull_request' @@ -60,7 +60,7 @@ runs: password: ${{ inputs.ghcr-token }} - name: Login to DockerHub if: inputs.dockerhub-token != '' && github.event_name != 'pull_request' - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ inputs.dockerhub-user }} password: ${{ inputs.dockerhub-token }} diff --git a/.github/actions/setup-env/action.yaml b/.github/actions/setup-env/action.yaml index 432490ce27..4e0f8521a8 100644 --- a/.github/actions/setup-env/action.yaml +++ b/.github/actions/setup-env/action.yaml @@ -20,31 +20,17 @@ inputs: runs: using: "composite" steps: - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ inputs.node-version }} - - uses: pnpm/action-setup@v2 name: Setup pnpm - id: pnpm-install with: version: ${{ inputs.pnpm-version }} - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - name: Setup pnpm cache + - name: Set up Node.js + uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH}} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + node-version: ${{ inputs.node-version }} + cache: 'pnpm' + cache-dependency-path: 'ui/pnpm-lock.yaml' - name: Setup JDK uses: actions/setup-java@v4 @@ -52,10 +38,3 @@ runs: distribution: "temurin" cache: "gradle" java-version: ${{ inputs.java-version }} - - - name: Cache SonarCloud packages - uses: actions/cache@v3 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar diff --git a/.github/workflows/halo.yaml b/.github/workflows/halo.yaml index 8af30ae7f5..29ba8b93ae 100644 --- a/.github/workflows/halo.yaml +++ b/.github/workflows/halo.yaml @@ -24,20 +24,20 @@ jobs: if: github.event_name == 'pull_request' || github.event_name == 'push' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Environment uses: ./.github/actions/setup-env - name: Check Halo run: ./gradlew check - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 build: runs-on: ubuntu-latest if: always() && (needs.test.result == 'skipped' || needs.test.result == 'success') needs: test steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Environment uses: ./.github/actions/setup-env - name: Reset version of Halo @@ -62,7 +62,7 @@ jobs: if: always() && needs.build.result == 'success' && github.event_name == 'release' needs: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download Artifacts uses: actions/download-artifact@v4 with: @@ -78,7 +78,7 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download Artifacts uses: actions/download-artifact@v4 with: @@ -99,7 +99,7 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download Artifacts uses: actions/download-artifact@v4 with: