From 62942ccfd4ab58cf103a5b6ce34f00cedff610d7 Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 26 Feb 2024 20:12:19 +0700 Subject: [PATCH 1/7] Update prysm --- shared/services/config/prysm-config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/services/config/prysm-config.go b/shared/services/config/prysm-config.go index 7f24d2b7..5abb7fbe 100644 --- a/shared/services/config/prysm-config.go +++ b/shared/services/config/prysm-config.go @@ -27,8 +27,8 @@ import ( ) const ( - prysmBnTagTest string = "staderlabs/prysm:v4.2.1" - prysmVcTagTest string = "staderlabs/prysm:v4.2.1" + prysmBnTagTest string = "staderlabs/prysm:v5.0.0" + prysmVcTagTest string = "staderlabs/prysm:v5.0.0" prysmBnTagProd string = "staderlabs/prysm:v4.2.1" prysmVcTagProd string = "staderlabs/prysm:v4.2.1" From 675e7acb7c0bb538b38007bf59af18e834da347a Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 26 Feb 2024 20:12:29 +0700 Subject: [PATCH 2/7] Update github action --- .github/workflows/go.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0c17a7d0..b1729429 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,18 +13,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.19 + cache: false - name: Test with the Go CLI run: go test ./... - name: Golangci - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: # Require: The version of golangci-lint to use. # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. From ea39e4ecc3b552ccca5fd570d64ea00bd0a5338b Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 26 Feb 2024 20:30:19 +0700 Subject: [PATCH 3/7] Remove go test --- .github/workflows/go.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b1729429..4d1cb099 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,9 +19,6 @@ jobs: go-version: 1.19 cache: false - - name: Test with the Go CLI - run: go test ./... - - name: Golangci uses: golangci/golangci-lint-action@v4 with: From 44dee1b0eb7eea4b9155c4c492657172b316d64b Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 26 Feb 2024 20:39:07 +0700 Subject: [PATCH 4/7] Update workflow --- .github/workflows/go.yml | 75 ++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 41 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4d1cb099..cf3cbaca 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,45 +10,38 @@ on: branches: ["main"] jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Go 1.19 + uses: actions/setup-go@v3 + with: + go-version: '1.19' + + - name: Golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + args: --timeout 3m --verbose --config=.golangci.yml --out-${NO_FUTURE}format colored-line-number + only-new-issues: true build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: 1.19 - cache: false - - - name: Golangci - uses: golangci/golangci-lint-action@v4 - with: - # Require: The version of golangci-lint to use. - # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. - # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. - version: latest - - # Optional: working directory, useful for monorepos - # working-directory: somedir - - # Optional: golangci-lint command line arguments. - # - # Note: By default, the `.golangci.yml` file should be at the root of the repository. - # The location of the configuration file can be changed by using `--config=` - # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0 - - args: --timeout 3m --verbose - # Optional: show only new issues if it's a pull request. The default value is `false`. - only-new-issues: true - - # Optional: if set to true, then all caching functionality will be completely disabled, - # takes precedence over all other caching options. - # skip-cache: true - - # Optional: if set to true, then the action won't cache or restore ~/go/pkg. - # skip-pkg-cache: true - - # Optional: if set to true, then the action won't cache or restore ~/.cache/go-build. - # skip-build-cache: true - - # Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'. - # install-mode: "goinstall" + name: Build + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: '1.19' + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + go get -v -t -d ./... + - name: Test + run: go test -v ./... From 3b69d54f6931e53a5089b6ba51b8c8d4c55fd68d Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 26 Feb 2024 20:41:18 +0700 Subject: [PATCH 5/7] Update action version --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cf3cbaca..99af7cfa 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Go 1.19 - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: '1.19' @@ -33,12 +33,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: '1.19' - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get dependencies run: | From 882c0cba61ca14445e79aa1564517ae7d62317c9 Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 26 Feb 2024 20:43:56 +0700 Subject: [PATCH 6/7] update golang action v4 --- .github/workflows/go.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 99af7cfa..4f4c2e29 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,9 +21,10 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.19' + cache: true - name: Golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: version: latest args: --timeout 3m --verbose --config=.golangci.yml --out-${NO_FUTURE}format colored-line-number @@ -36,6 +37,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.19' + cache: true - name: Check out code into the Go module directory uses: actions/checkout@v4 From 2af8094cab4138027a7a1fe9a17203f4195c44e0 Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 26 Feb 2024 20:46:47 +0700 Subject: [PATCH 7/7] No cache --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4f4c2e29..de21629f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,7 +21,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.19' - cache: true + cache: false - name: Golangci-lint uses: golangci/golangci-lint-action@v4 @@ -37,7 +37,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.19' - cache: true + cache: false - name: Check out code into the Go module directory uses: actions/checkout@v4