Explorar o código

Merge pull request #301 from docker/no_double_build_on_master

Avoid running build twice on master with master.yml
Guillaume Tardif %!s(int64=5) %!d(string=hai) anos
pai
achega
84e1522400
Modificáronse 1 ficheiros con 2 adicións e 30 borrados
  1. 2 30
      .github/workflows/master-ci.yml

+ 2 - 30
.github/workflows/master-ci.yml

@@ -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
-        env:
-          BUILD_TAGS: example,local
-        run: make -f builder.Makefile test
-
-      - name: Build
+      - name: Build fro ACI e2e tests
         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 }}