mirror of https://github.com/docker/compose.git
Avoid running build/tests/lint twice on master with master.yml
This commit is contained in:
parent
f0ab42e109
commit
7fac6bf766
|
@ -6,28 +6,8 @@ on:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
name: Lint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
GO111MODULE: "on"
|
|
||||||
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
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Run golangci-lint
|
|
||||||
run: |
|
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b . v1.27.0
|
|
||||||
./golangci-lint run --timeout 10m0s
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: ACI e2e tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
|
@ -46,19 +26,11 @@ jobs:
|
||||||
path: ~/go/pkg/mod
|
path: ~/go/pkg/mod
|
||||||
key: go-${{ hashFiles('**/go.sum') }}
|
key: go-${{ hashFiles('**/go.sum') }}
|
||||||
|
|
||||||
- name: Test
|
- name: Build fro ACI e2e tests
|
||||||
env:
|
|
||||||
BUILD_TAGS: example,local
|
|
||||||
run: make -f builder.Makefile test
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
env:
|
env:
|
||||||
BUILD_TAGS: example,local
|
BUILD_TAGS: example,local
|
||||||
run: make -f builder.Makefile cli
|
run: make -f builder.Makefile cli
|
||||||
|
|
||||||
- name: E2E Test
|
|
||||||
run: make e2e-local
|
|
||||||
|
|
||||||
- name: ACI e2e Test
|
- name: ACI e2e Test
|
||||||
env:
|
env:
|
||||||
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
|
|
Loading…
Reference in New Issue