diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..980d32d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,85 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + provision-dns: + + env: + GODADDY_API_KEY: ${{ secrets.GODADDY_API_KEY }} + GODADDY_API_SECRET: ${{ secrets.GODADDY_API_SECRET }} + + defaults: + run: + working-directory: infra # start in the infrastructure directory, rather than root + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: fregante/setup-git-user@v1 # sets the user.name and user.email gitconfig + + - uses: hashicorp/setup-terraform@v1 + with: + cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + + - run: | + bash <(curl -s https://raw.githubusercontent.com/n3integration/terraform-godaddy/master/install.sh) + cat > ~/.terraformrc <