From a2389a72fb6c27c0bfcc5253a751ffaefc79ab0c Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Fri, 27 Jan 2023 11:46:51 +0000 Subject: [PATCH 1/9] Create build.yml --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..315e0388 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build-Check + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.16.x + + - name: Set up tools + run: | + mkdir -p $GOPATH/src/github.com/apache; + cd $GOPATH/src/github.com/apache + git clone git@github.com:apache/cloudstack-terraform-provider + cd $GOPATH/src/github.com/apache/cloudstack-terraform-provider + + - name: Build + run: | + export PATH=$PATH:$(go env GOPATH)/bin + make build + + - name: Test + run: make test From 29239c6354c81870d88a11ca69314d93082f1f8e Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Fri, 27 Jan 2023 11:52:46 +0000 Subject: [PATCH 2/9] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 315e0388..60461aee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,14 +20,14 @@ jobs: - name: Set up tools run: | + export PATH=$PATH:$(go env GOPATH)/bin mkdir -p $GOPATH/src/github.com/apache; cd $GOPATH/src/github.com/apache git clone git@github.com:apache/cloudstack-terraform-provider cd $GOPATH/src/github.com/apache/cloudstack-terraform-provider - name: Build - run: | - export PATH=$PATH:$(go env GOPATH)/bin + run: | make build - name: Test From 2ffae892d9c2dad261c7b57f70da1b5f3cc63887 Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Fri, 27 Jan 2023 12:04:31 +0000 Subject: [PATCH 3/9] Update build.yml --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60461aee..eb081b2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,7 @@ jobs: - name: Set up tools run: | export PATH=$PATH:$(go env GOPATH)/bin + chmod 777 $GOPATH mkdir -p $GOPATH/src/github.com/apache; cd $GOPATH/src/github.com/apache git clone git@github.com:apache/cloudstack-terraform-provider From 099662d8ba8d484b6d56224913bd91251d44b883 Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Fri, 27 Jan 2023 12:11:21 +0000 Subject: [PATCH 4/9] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb081b2c..9e3026e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: - name: Set up tools run: | export PATH=$PATH:$(go env GOPATH)/bin - chmod 777 $GOPATH + chmod 777 $GOPATH/src mkdir -p $GOPATH/src/github.com/apache; cd $GOPATH/src/github.com/apache git clone git@github.com:apache/cloudstack-terraform-provider From edb44bf67231e5913e1b86162d7dbc346e801829 Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Fri, 27 Jan 2023 12:13:59 +0000 Subject: [PATCH 5/9] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e3026e2..9ee8c6f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: - name: Set up tools run: | export PATH=$PATH:$(go env GOPATH)/bin - chmod 777 $GOPATH/src + chmod 777 $GOPATH/bin mkdir -p $GOPATH/src/github.com/apache; cd $GOPATH/src/github.com/apache git clone git@github.com:apache/cloudstack-terraform-provider From 7924ab101b01ffabeb6217a59fd92421fb9e558e Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Fri, 27 Jan 2023 12:24:57 +0000 Subject: [PATCH 6/9] Update build.yml --- .github/workflows/build.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ee8c6f7..113be66f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,15 +18,6 @@ jobs: with: go-version: 1.16.x - - name: Set up tools - run: | - export PATH=$PATH:$(go env GOPATH)/bin - chmod 777 $GOPATH/bin - mkdir -p $GOPATH/src/github.com/apache; - cd $GOPATH/src/github.com/apache - git clone git@github.com:apache/cloudstack-terraform-provider - cd $GOPATH/src/github.com/apache/cloudstack-terraform-provider - - name: Build run: | make build From d6938e80f821f6ad910c4491290b67bfec3ea8ac Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Mon, 30 Jan 2023 10:23:34 +0000 Subject: [PATCH 7/9] Update build.yml --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 113be66f..5a72a73a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,21 @@ + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Build-Check on: [push, pull_request] From 6403ae193835fc44752c7eb569047756182cd47a Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Mon, 30 Jan 2023 10:23:46 +0000 Subject: [PATCH 8/9] Update build.yml --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a72a73a..8d8b710e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,3 @@ - # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information From 7743d42dd29d2df3a168255b6cd8ba531a61b837 Mon Sep 17 00:00:00 2001 From: Rahul Agarwal <35532056+rahulbcn27@users.noreply.github.com> Date: Mon, 30 Jan 2023 10:25:40 +0000 Subject: [PATCH 9/9] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d8b710e..f2acf05b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.16.x + go-version: 1.19.x - name: Build run: |