name: UpCloud Terraform provider tests

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  Test:
    runs-on: ubuntu-latest
    steps:
      - name: "Setup Go"
        uses: actions/setup-go@v2
        with:
          go-version: "1.14.x"

      - name: "Checkout source code"
        uses: actions/checkout@v2

      - name: "Create googlesource.com cookie"
        run: bash scripts/gogetcookie.sh

      - name: "Examine Go source code"
        run: make vet

      - name: "Run unit tests"
        run: make test

      - name: "Run acceptance tests"
        env:
          UPCLOUD_USERNAME: ${{ secrets.UPCLOUD_USERNAME }}
          UPCLOUD_PASSWORD: ${{ secrets.UPCLOUD_PASSWORD }}
        if: secrets.UPCLOUD_PASSWORD != ''
        run: make testacc

name: UpCloud Terraform provider tests

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  Test:
    runs-on: ubuntu-latest
    steps:
      - name: "Setup Go"
        uses: actions/setup-go@v2
        with:
          go-version: "1.14.x"

      - name: "Checkout source code"
        uses: actions/checkout@v2

      - name: "Create googlesource.com cookie"
        run: bash scripts/gogetcookie.sh

      - name: "Examine Go source code"
        run: make vet

      - name: "Run unit tests"
        run: make test

      - name: "Run acceptance tests"
        env:
          UPCLOUD_USERNAME: ${{ secrets.UPCLOUD_USERNAME }}
          UPCLOUD_PASSWORD: ${{ secrets.UPCLOUD_PASSWORD }}
        if: env.UPCLOUD_PASSWORD != ''
        run: make testacc

Fix acceptance test condition in CI
Fix acceptance test condition in CI

From https://github.com/mundschenk-at/avatar-privacy/pull/226/files