mirror of
https://github.com/harness/drone.git
synced 2025-05-07 23:19:13 +08:00
Update ci-lint.yml (#3434)
This commit is contained in:
parent
8133f329ec
commit
37b0165864
21
.github/workflows/ci-lint.yml
vendored
21
.github/workflows/ci-lint.yml
vendored
@ -12,13 +12,10 @@ permissions:
|
|||||||
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
||||||
# pull-requests: read
|
# pull-requests: read
|
||||||
jobs:
|
jobs:
|
||||||
golangci:
|
web:
|
||||||
name: lint
|
name: CI linter for js/ts
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: 1.19
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@ -31,11 +28,23 @@ jobs:
|
|||||||
yarn install
|
yarn install
|
||||||
yarn check:all
|
yarn check:all
|
||||||
yarn build
|
yarn build
|
||||||
|
gitness:
|
||||||
|
name: CI linter for go
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
- name: get dependencies
|
||||||
|
run: |
|
||||||
|
mkdir -p ./web/dist
|
||||||
|
touch ./web/dist/empty.txt
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
|
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
|
||||||
version: v1.49
|
version: v1.54
|
||||||
|
|
||||||
# Optional: working directory, useful for monorepos
|
# Optional: working directory, useful for monorepos
|
||||||
# working-directory: somedir
|
# working-directory: somedir
|
||||||
|
@ -18,7 +18,7 @@ RUN yarn && yarn build && yarn cache clean
|
|||||||
# ---------------------------------------------------------#
|
# ---------------------------------------------------------#
|
||||||
# Build gitness image #
|
# Build gitness image #
|
||||||
# ---------------------------------------------------------#
|
# ---------------------------------------------------------#
|
||||||
FROM --platform=$BUILDPLATFORM golang:1.19-alpine as builder
|
FROM --platform=$BUILDPLATFORM golang:1.20-alpine as builder
|
||||||
|
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk add --no-cache protoc build-base git
|
&& apk add --no-cache protoc build-base git
|
||||||
|
@ -39,7 +39,7 @@ For more information on Drone, please visit [drone.io](https://www.drone.io/).
|
|||||||
## Gitness Development
|
## Gitness Development
|
||||||
### Pre-Requisites
|
### Pre-Requisites
|
||||||
|
|
||||||
Install the latest stable version of Node and Go version 1.19 or higher, and then install the below Go programs. Ensure the GOPATH [bin directory](https://go.dev/doc/gopath_code#GOPATH) is added to your PATH.
|
Install the latest stable version of Node and Go version 1.20 or higher, and then install the below Go programs. Ensure the GOPATH [bin directory](https://go.dev/doc/gopath_code#GOPATH) is added to your PATH.
|
||||||
|
|
||||||
Install protobuf
|
Install protobuf
|
||||||
- Check if you've already installed protobuf ```protoc --version```
|
- Check if you've already installed protobuf ```protoc --version```
|
||||||
|
Loading…
Reference in New Issue
Block a user