diff --git a/.github/workflows/automated-test.yml b/.github/workflows/automated-test.yml new file mode 100644 index 000000000..f574584b5 --- /dev/null +++ b/.github/workflows/automated-test.yml @@ -0,0 +1,20 @@ +name: 'Automated Tests' + +on: [push, pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.14 + - name: Code Lint + run: make tools && make lint + - name: Website + run: make tools && make website-lint + - name: Test + run: make test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..915a87230 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: release +on: + push: + tags: + - 'v*' +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Unshallow + run: git fetch --prune --unshallow + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.14 + - + name: Import GPG key + id: import_gpg + uses: paultyng/ghaction-import-gpg@v2.1.0 + env: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + PASSPHRASE: ${{ secrets.PASSPHRASE }} + - name: Set the user terminal + run: export GPG_TTY=$(tty) + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 20181cd1f..000000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -dist: xenial -sudo: required -services: - - docker -language: go - -matrix: - fast_finish: true - allow_failures: - - go: tip - include: - - go: "1.13.x" - name: "Code Lint" - script: make lint - - go: "1.13.x" - name: "Code UnitTest" - script: make test - - go: "1.13.x" - name: "Website" - #- make website-test #commented until Terraform Provider Program Validation - script: make website-lint - -env: - global: - - GOFLAGS=-mod=vendor - -install: -- make tools \ No newline at end of file