From 8ae2d9ad781446c16a1dafa95f3bd4545666b68a Mon Sep 17 00:00:00 2001 From: Keith Manning Date: Fri, 16 Jul 2021 13:13:58 -0400 Subject: [PATCH 1/5] Issue 393: update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 144c9fb7..21fb0746 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased +- [Issue #393](https://github.com/manheim/terraform-pipeline/issues/393) Convert from TravisCI to GithubActions - [Issue #280 (partial)](https://github.com/manheim/terraform-pipeline/issues/280) Feature: Add TerraformImportPlugin & TerraformImportCommand # v5.16 From 52d16a94238b764c74c5a1803bd9c865bc7fc36c Mon Sep 17 00:00:00 2001 From: Keith Manning Date: Fri, 16 Jul 2021 13:15:57 -0400 Subject: [PATCH 2/5] Issue 393: add build configuration --- .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..c672d004 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +# Run unit tests +name: CI + +# Triggers the workflow on all push or pull request events +on: [push, pull_request] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Set up JDK 9 + uses: actions/setup-java@v2 + with: + java-version: '9' + distribution: 'adopt' + + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + + # Run unit tests + - name: Run tests with gradle + run: ./gradlew check --info + + # Upload code coverage data to CodeCov + - name: Upload CodeCov results + uses: codecov/codecov-action@v1 From e79c98f1e122caee4714753ccbbcc879ae5d5eb5 Mon Sep 17 00:00:00 2001 From: Keith Manning Date: Fri, 16 Jul 2021 13:17:25 -0400 Subject: [PATCH 3/5] Issue 393: update build status badge on README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ace0fc72..b039bd20 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.com/manheim/terraform-pipeline.svg?branch=master)](https://travis-ci.com/manheim/terraform-pipeline) [![codecov](https://codecov.io/gh/manheim/terraform-pipeline/branch/master/graph/badge.svg)](https://codecov.io/gh/manheim/terraform-pipeline) +[![CI](https://github.com/manheim/terraform-pipeline/actions/workflows/build.yml/badge.svg)](https://github.com/manheim/terraform-pipeline/actions/workflows/build.yml) [![codecov](https://codecov.io/gh/manheim/terraform-pipeline/branch/master/graph/badge.svg)](https://codecov.io/gh/manheim/terraform-pipeline) # terraform-pipeline A reusable pipeline template to apply terraform configuration serially across multiple environments. From 79bf97c725978335dd3377ace9566108d0e5c856 Mon Sep 17 00:00:00 2001 From: Keith Manning Date: Fri, 16 Jul 2021 13:20:23 -0400 Subject: [PATCH 4/5] Issue 393: remove travis configuration --- .travis.yml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5616e903..00000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: groovy -jdk: - - openjdk9 -script: ./gradlew check --info -after_success: - - bash <(curl -s https://codecov.io/bash) From 6a68cf6df0ccce49b61236f48f1ede24ebf0e936 Mon Sep 17 00:00:00 2001 From: Keith Manning Date: Fri, 16 Jul 2021 13:25:47 -0400 Subject: [PATCH 5/5] Issue 393: update CHANGELOG header --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21fb0746..02bd4d16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased -- [Issue #393](https://github.com/manheim/terraform-pipeline/issues/393) Convert from TravisCI to GithubActions +- [Issue #393](https://github.com/manheim/terraform-pipeline/issues/393) Testing: Convert from TravisCI to GithubActions - [Issue #280 (partial)](https://github.com/manheim/terraform-pipeline/issues/280) Feature: Add TerraformImportPlugin & TerraformImportCommand # v5.16