mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
@@ -2,7 +2,7 @@ name: CI
|
||||
|
||||
env:
|
||||
# Common versions
|
||||
GO_VERSION: '1.14'
|
||||
GO_VERSION: '1.16'
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -27,10 +27,6 @@ jobs:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
- name: Run Check License
|
||||
run: |
|
||||
wget https://github.com/google/addlicense/releases/download/v1.0.0/addlicense_1.0.0_Linux_x86_64.tar.gz
|
||||
tar -zxvf addlicense_1.0.0_Linux_x86_64.tar.gz -C $(go env GOPATH)/bin
|
||||
chmod a+x $(go env GOPATH)/bin/addlicense
|
||||
rm -rf addlicense_1.0.0_Linux_x86_64.tar.gz
|
||||
make filelicense
|
||||
modifyCode=$(git status -s | grep M | wc -l)
|
||||
git status -s
|
||||
@@ -52,9 +48,6 @@ jobs:
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
- name: Install go ci lint
|
||||
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.39.0
|
||||
|
||||
- name: Run Linter
|
||||
run: make lint
|
||||
|
||||
|
||||
Reference in New Issue
Block a user