From 94738b8c77e996166d05c2d47e950fc9ed613e3c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Tue, 16 Mar 2021 13:57:28 +0000 Subject: [PATCH] ci: Switch from Travis to GitHub Actions (#717) - The Travis CI YAML specified Ubuntu Trusty as a runner OS, which is very end-of-life, so I switched those checks to GitHub Actions for consistency with the other jobs here (acceptance tests, etc). - You can see a test workflow run at https://github.com/issyl0/terraform-provider-github/runs/2024800600. - I didn't know if we wanted to do matrix builds to test multiple versions of Go, but that can be a goal for the future if we do. The development instructions for this provider still say Go 1.13. --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .travis.yml | 29 ----------------------------- 2 files changed, 18 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..85143a2cce --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: GitHub Actions CI + +on: [push, pull_request] + +jobs: + ci: + runs-on: ubuntu-latest + env: + GOFLAGS: "-mod=vendor" + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '1.13' + - run: make tools + - run: make lint + - run: make test + - run: make website-lint diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 803e5558a6..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -dist: trusty -sudo: required -services: -- docker -language: go -go: - - "1.13.x" - -env: - - GOFLAGS=-mod=vendor - -branches: - only: - - master - -install: -- make tools - -matrix: - fast_finish: true - allow_failures: - - go: tip - include: - - name: "make lint" - script: make lint - - name: "make test" - script: make test - - name: "make website-lint" - script: make website-lint