Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/actions/go-setup-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
using: "composite"
steps:
- name: Set up Golang
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version: ${{ inputs.go-version }}
cache: false
Expand All @@ -37,8 +37,8 @@ runs:

- name: Cache Go dependencies
id: cache_vendor
if: inputs.cache-enabled == 'true'
uses: actions/cache@v4
if: inputs.cache-enabled == 'true' && runner.environment == 'github-hosted'
uses: actions/cache@v5
env:
cache-name: go-cache-vendor
with:
Expand All @@ -48,7 +48,6 @@ runs:
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
enableCrossOsArchive: true

- name: Resolve package to module & Download dependencies
if: ${{ steps.cache_vendor.outputs.cache-hit != 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-setup-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
golangci-lint run --output.checkstyle.path=golangci-report.xml || true

- name: Upload lint results
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: lint-results
path: golangci-report.xml
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-qa-sec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:

- name: Upload test results
if: always()
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: test-artifacts
path: |
Expand All @@ -110,12 +110,12 @@ jobs:
fetch-depth: 0

- name: Download lint results
uses: actions/download-artifact@v6
uses: actions/download-artifact@v8
with:
name: lint-results

- name: Download test results
uses: actions/download-artifact@v6
uses: actions/download-artifact@v8
with:
name: test-artifacts

Expand All @@ -124,7 +124,7 @@ jobs:
service-key: ${{ secrets.TWINGATE_SERVICE_ACCOUNT }}

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v6
uses: sonarsource/sonarqube-scan-action@v8
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Expand All @@ -142,7 +142,7 @@ jobs:
if: github.event_name != 'pull_request'

- name: SonarQube Go detailed scan PR
uses: sonarsource/sonarqube-scan-action@v6
uses: sonarsource/sonarqube-scan-action@v8
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
make build-validator

- name: Save artifacts
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: build
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ jobs:

- name: Set up QEMU
if: ${{ matrix.enabled }}
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4
with:
platforms: linux/amd64,linux/arm64
Comment thread
fbsobreira marked this conversation as resolved.

- name: Set up Docker Buildx
if: ${{ matrix.enabled }}
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
with:
driver-opts: |
image=moby/buildkit:latest
network=host

- name: Login to Docker Hub
if: ${{ matrix.enabled }}
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
Comment thread
fbsobreira marked this conversation as resolved.
with:
files: |
bin/klevergo-node${{ matrix.extension }}
Expand All @@ -103,33 +103,33 @@ jobs:
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Configure GCP service account
uses: google-github-actions/auth@v2
uses: google-github-actions/auth@v3
with:
credentials_json: '${{ secrets.GCP_CLOUD_RUN_SA }}'

- name: Upload operator files to bucket
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'bin/klevergo-operator${{ matrix.extension }}'
destination: 'kleverchain-public/koperator/${{ matrix.name }}/${{ env.VERSION }}'
predefinedAcl: 'publicRead'

- name: Upload node files to bucket
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'bin/klevergo-node${{ matrix.extension }}'
destination: 'kleverchain-public/knode/${{ matrix.name }}/${{ env.VERSION }}'
predefinedAcl: 'publicRead'

- name: Upload benchmark files to bucket
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'bin/klevergo-benchmark${{ matrix.extension }}'
destination: 'kleverchain-public/kbenchmark/${{ matrix.name }}/${{ env.VERSION }}'
predefinedAcl: 'publicRead'

- name: Upload Klever Blockchain IDE operator files to bucket
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'bin/${{ matrix.name }}'
destination: 'kleverchain-public/koperator/${{ matrix.name }}/${{ env.VERSION }}'
Expand Down