mirror of
https://github.com/docker/compose.git
synced 2025-07-21 04:34:38 +02:00
Remove golangci-lint action, use executable
The github action we were using had to be rebuilt on each build, we now start from base go 1.14 and just download the golangci-tool and run it. This saves around 20-30 seconds on each build.
This commit is contained in:
parent
0d3ddaa490
commit
693aa7b849
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -6,15 +6,23 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GO111MODULE: "on"
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set up Go 1.14
|
||||||
|
uses: actions/setup-go@v1
|
||||||
|
with:
|
||||||
|
go-version: 1.14
|
||||||
|
id: go
|
||||||
|
|
||||||
- name: Checkout code into the Go module directory
|
- name: Checkout code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Run golangci-lint
|
- name: Run golangci-lint
|
||||||
env:
|
run: |
|
||||||
GO111MODULE: "on"
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b . v1.27.0
|
||||||
GOROOT: ""
|
./golangci-lint run
|
||||||
uses: actions-contrib/golangci-lint@v1
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user