mirror of https://gitea.com/gitea/test-env.git
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:
parent
fc425cbf02
commit
ce003171ea
|
@ -10,8 +10,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
arch: ['ubuntu-latest', 'arm-ubuntu-latest']
|
arch: ['ubuntu-latest', 'arm-ubuntu-latest']
|
||||||
go-version: ['1.19','1.20']
|
go-version: ['1.19','1.20']
|
||||||
git-version: ['2.38.4']
|
git-version: ['2.40.0']
|
||||||
golangci-lint-version: ['1.51.2']
|
golangci-lint-version: ['1.52.2']
|
||||||
runs-on: ${{ matrix.arch }}
|
runs-on: ${{ matrix.arch }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
@ -7,8 +7,8 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: ['1.19','1.20']
|
go-version: ['1.19','1.20']
|
||||||
git-version: ['2.38.4']
|
git-version: ['2.40.0']
|
||||||
golangci-lint-version: ['1.51.2']
|
golangci-lint-version: ['1.52.2']
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
ARG GOLANG_VERSION=1.20
|
ARG GOLANG_VERSION=1.20
|
||||||
FROM golang:${GOLANG_VERSION}-bullseye
|
FROM golang:${GOLANG_VERSION}-bullseye
|
||||||
|
|
||||||
ARG GIT_VERSION=2.38.4
|
ARG GIT_VERSION=2.40.0
|
||||||
ARG GOLANGCI_LINT_VERSION=1.51.0
|
ARG GOLANGCI_LINT_VERSION=1.52.2
|
||||||
|
|
||||||
ARG GITEA_ID=1000
|
ARG GITEA_ID=1000
|
||||||
ARG GITEA_GID=1000
|
ARG GITEA_GID=1000
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
A docker image for Gitea ci test
|
A docker image for Gitea ci test
|
||||||
|
|
||||||
- From golang:1.20
|
- From golang:1.20
|
||||||
- upgrade git to v2.38.4
|
- upgrade git to v2.40.0
|
||||||
- install git-lfs
|
- 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.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue