Bump golangci-lint and git version (#21)

This should also fix the CI issue in gitea main repo.

Co-authored-by: harryzcy <harry@harryzheng.com>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/21
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
Co-authored-by: harryzcy <harryzcy@noreply.gitea.io>
Co-committed-by: harryzcy <harryzcy@noreply.gitea.io>
This commit is contained in:
harryzcy 2023-04-06 20:36:14 +08:00 committed by John Olheiser
parent fc425cbf02
commit ce003171ea
4 changed files with 9 additions and 9 deletions

View File

@ -10,8 +10,8 @@ jobs:
matrix:
arch: ['ubuntu-latest', 'arm-ubuntu-latest']
go-version: ['1.19','1.20']
git-version: ['2.38.4']
golangci-lint-version: ['1.51.2']
git-version: ['2.40.0']
golangci-lint-version: ['1.52.2']
runs-on: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3

View File

@ -7,8 +7,8 @@ jobs:
strategy:
matrix:
go-version: ['1.19','1.20']
git-version: ['2.38.4']
golangci-lint-version: ['1.51.2']
git-version: ['2.40.0']
golangci-lint-version: ['1.52.2']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View File

@ -1,8 +1,8 @@
ARG GOLANG_VERSION=1.20
FROM golang:${GOLANG_VERSION}-bullseye
ARG GIT_VERSION=2.38.4
ARG GOLANGCI_LINT_VERSION=1.51.0
ARG GIT_VERSION=2.40.0
ARG GOLANGCI_LINT_VERSION=1.52.2
ARG GITEA_ID=1000
ARG GITEA_GID=1000

View File

@ -3,11 +3,11 @@
A docker image for Gitea ci test
- From golang:1.20
- upgrade git to v2.38.4
- upgrade git to v2.40.0
- install git-lfs
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.51.2
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.52.2
# development environment build
## development environment build
In order to run from within a development environment at the root of the gitea repository with a command such as `docker run --volume $(pwd):/drone/src --workdir /drone/src --user gitea mytestenv ...` the id of the gitea user must match the id of the development environment.