fix/workflows (#169)

* fix: align gh wf path with go.mod and remove vendor dir

* fix: removes duplicated go version env

* chore: extract docker ce version as env

* chore: removes leading yaml lines
This commit is contained in:
Manuel Vogel 2021-04-08 13:15:06 +02:00 committed by GitHub
parent d1529ddc48
commit b1a5b526d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 14 deletions

View file

@ -1,4 +1,3 @@
---
name: Acc Tests
on:
push:
@ -9,13 +8,13 @@ on:
types: ['opened', 'synchronize']
paths:
- '**.go'
- 'vendor/**'
- go.mod
- '.github/workflows/**'
env:
GO_VERSION: "1.16"
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
DEBIAN_FRONTEND: noninteractive
DOCKER_CE_VERSION: "5:20.10.1~3-0~ubuntu-focal"
jobs:
acc-test:
@ -41,7 +40,7 @@ jobs:
- run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- run: sudo apt-get update
# list available docker versions: apt-cache policy docker-ce
- run: sudo apt-get -y install docker-ce=5:20.10.1~3-0~ubuntu-focal
- run: sudo apt-get -y install docker-ce=${DOCKER_CE_VERSION}
- run: docker version
# Allow local registry to be insecure
- run: sudo sed 's/DOCKER_OPTS="/DOCKER_OPTS="--insecure-registry=127.0.0.1:15000 /g' -i /etc/default/docker

View file

@ -1,4 +1,3 @@
---
name: Compile Binaries
on:
push:
@ -9,11 +8,10 @@ on:
types: ['opened', 'synchronize']
paths:
- '**.go'
- 'vendor/**'
- go.mod
- '.github/workflows/**'
env:
GO_VERSION: "1.16"
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
jobs:

View file

@ -1,4 +1,3 @@
---
name: golangci-lint
on:
push:

View file

@ -25,7 +25,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: '1.16'
- name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0

View file

@ -1,4 +1,3 @@
---
name: Unit Tests
on:
push:
@ -9,11 +8,10 @@ on:
types: ['opened', 'synchronize']
paths:
- '**.go'
- 'vendor/**'
- go.mod
- '.github/workflows/**'
env:
GO_VERSION: "1.16"
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
jobs:

View file

@ -1,4 +1,3 @@
---
name: Docs and Website Lint
on:
push:
@ -14,6 +13,7 @@ on:
env:
GO_VERSION: "1.16"
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
DOCKER_CE_VERSION: "5:20.10.1~3-0~ubuntu-focal"
jobs:
website-lint-spellcheck-tffmt:
@ -32,7 +32,7 @@ jobs:
- run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- run: sudo apt-get update
# list available docker versions: apt-cache policy docker-ce
- run: sudo apt-get -y install docker-ce=5:20.10.1~3-0~ubuntu-focal
- run: sudo apt-get -y install docker-ce=${DOCKER_CE_VERSION}
- run: docker version
- run: make setup
- run: make website-lint