Skip to content

Commit

Permalink
Update CI and test image
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk committed Nov 25, 2024
1 parent 11eecbc commit b8d84f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/010_build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build-and-test:
runs-on: [self-hosted, tfchainrunner01]
container:
image: threefolddev/tfchain:4
image: threefolddev/tfchain:5
env:
DEBIAN_FRONTEND: noninteractive
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/020_lint_and_test_go_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,22 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "1.21"
cache: false
# cache-dependency-path: clients/tfchain-client-go/go.sum
id: go

- name: golangci-lint
uses: golangci/golangci-lint-action@v3.7.0
uses: golangci/golangci-lint-action@v6
with:
args: --timeout 3m --verbose
working-directory: clients/tfchain-client-go

- name: staticcheck
uses: dominikh/staticcheck-action@v1.3.0
uses: dominikh/staticcheck-action@v1
with:
version: "2022.1.3"
version: "latest"
install-go: false
working-directory: clients/tfchain-client-go
env:
GO111MODULE: on
Expand All @@ -44,4 +45,4 @@ jobs:
uses: Jerome1337/[email protected]
with:
gofmt-path: './clients/tfchain-client-go'
gofmt-flags: "-l -d"
gofmt-flags: "-l -d"
6 changes: 3 additions & 3 deletions .github/workflows/build_test.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y \
Expand All @@ -16,8 +16,8 @@ RUN apt update && \
zstd \
wget \
protobuf-compiler && \
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz && \
tar -xvf go1.20.2.linux-amd64.tar.gz && \
wget https://go.dev/dl/go1.21.13.linux-amd64.tar.gz && \
tar -xvf go1.21.13.linux-amd64.tar.gz && \
mv go /usr/local && \
echo "GOPATH=/usr/local/go" >> ~/.bashrc && \
echo "PATH=\$PATH:\$GOPATH/bin" >> ~/.bashrc && \
Expand Down

0 comments on commit b8d84f3

Please sign in to comment.