Skip to content

Commit b8d84f3

Browse files
committed
Update CI and test image
1 parent 11eecbc commit b8d84f3

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/010_build_and_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build-and-test:
99
runs-on: [self-hosted, tfchainrunner01]
1010
container:
11-
image: threefolddev/tfchain:4
11+
image: threefolddev/tfchain:5
1212
env:
1313
DEBIAN_FRONTEND: noninteractive
1414
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin

.github/workflows/020_lint_and_test_go_client.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,22 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: "1.20"
24+
go-version: "1.21"
2525
cache: false
2626
# cache-dependency-path: clients/tfchain-client-go/go.sum
2727
id: go
2828

2929
- name: golangci-lint
30-
uses: golangci/golangci-lint-action@v3.7.0
30+
uses: golangci/golangci-lint-action@v6
3131
with:
3232
args: --timeout 3m --verbose
3333
working-directory: clients/tfchain-client-go
3434

3535
- name: staticcheck
36-
uses: dominikh/staticcheck-action@v1.3.0
36+
uses: dominikh/staticcheck-action@v1
3737
with:
38-
version: "2022.1.3"
38+
version: "latest"
39+
install-go: false
3940
working-directory: clients/tfchain-client-go
4041
env:
4142
GO111MODULE: on
@@ -44,4 +45,4 @@ jobs:
4445
uses: Jerome1337/gofmt-action@v1.0.5
4546
with:
4647
gofmt-path: './clients/tfchain-client-go'
47-
gofmt-flags: "-l -d"
48+
gofmt-flags: "-l -d"

.github/workflows/build_test.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22
ENV DEBIAN_FRONTEND=noninteractive
33
RUN apt update && \
44
apt install -y \
@@ -16,8 +16,8 @@ RUN apt update && \
1616
zstd \
1717
wget \
1818
protobuf-compiler && \
19-
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz && \
20-
tar -xvf go1.20.2.linux-amd64.tar.gz && \
19+
wget https://go.dev/dl/go1.21.13.linux-amd64.tar.gz && \
20+
tar -xvf go1.21.13.linux-amd64.tar.gz && \
2121
mv go /usr/local && \
2222
echo "GOPATH=/usr/local/go" >> ~/.bashrc && \
2323
echo "PATH=\$PATH:\$GOPATH/bin" >> ~/.bashrc && \

0 commit comments

Comments
 (0)