Skip to content

Commit

Permalink
moving to github actions, moving to go 1.15, removing vendoring
Browse files Browse the repository at this point in the history
  • Loading branch information
attachmentgenie committed Mar 4, 2021
1 parent cd52b09 commit 5fbb957
Show file tree
Hide file tree
Showing 2,161 changed files with 413 additions and 630,045 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Acceptance Tests
on: [push,pull_request]

jobs:
acceptance:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.16
id: go

- name: Check out code repository source code
uses: actions/checkout@v2

- name: Start icinga2
run: make docker_start; sleep 30

- name: Run acceptance tests
run: make testacc
32 changes: 32 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Unit Tests
on: [push,pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go: [1.15]
os: [ubuntu-latest]
make_target: [errcheck, test, vet]

steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: ${{ matrix.go }}
id: go

- name: Check out code repository source code
uses: actions/checkout@v2

# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
- name: Set build variables
run: |
echo "MAKE_TARGET=${{ matrix.make_target }}" >> $GITHUB_ENV
echo "GO111MODULE=on" >> $GITHUB_ENV
- name: Run ${{matrix.make_target}}
run: |
make $MAKE_TARGET
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ Terraform Provider

<img src="https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg" width="600px">

[![Build Status](https://travis-ci.org/Icinga/terraform-provider-icinga2.svg?branch=master)](https://travis-ci.org/Icinga/terraform-provider-icinga2)
[![Build Status](https://github.com/Icinga/terraform-provider-icinga2/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/Icinga/terraform-provider-icinga2/actions/workflows/unit-tests.yml/badge.svg)
[![Build Status](https://github.com/Icinga/terraform-provider-icinga2/actions/workflows/acceptance-tests.yml/badge.svg)](https://github.com/Icinga/terraform-provider-icinga2/actions/workflows/acceptance-tests.yml/badge.svg)

Requirements
------------

- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
- [Go](https://golang.org/doc/install) 1.13 (to build the provider plugin)
- [Go](https://golang.org/doc/install) 1.15 (to build the provider plugin)

Building The Provider
---------------------
Expand Down
15 changes: 12 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
module github.com/Icinga/terraform-provider-icinga2

require (
github.com/hashicorp/terraform-plugin-sdk v1.14.0
github.com/lrsmith/go-icinga2-api v0.5.1
github.com/AlecAivazis/survey/v2 v2.2.8 // indirect
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/fatih/color v1.10.0 // indirect
github.com/hashicorp/terraform-plugin-sdk v1.16.0
github.com/lrsmith/go-icinga2-api v0.5.2
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/oligot/go-mod-upgrade v0.4.0 // indirect
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 // indirect
golang.org/x/sys v0.0.0-20210304203840-7b4935edff86 // indirect
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
golang.org/x/text v0.3.5 // indirect
)

go 1.13
go 1.16
344 changes: 344 additions & 0 deletions go.sum

Large diffs are not rendered by default.

202 changes: 0 additions & 202 deletions vendor/cloud.google.com/go/LICENSE

This file was deleted.

Loading

0 comments on commit 5fbb957

Please sign in to comment.