Skip to content

Merge branch 'master' of https://github.com/Mesomorphic/terraform-pro… #20

Merge branch 'master' of https://github.com/Mesomorphic/terraform-pro…

Merge branch 'master' of https://github.com/Mesomorphic/terraform-pro… #20

Workflow file for this run

name: Build and Test
on:
pull_request:
push:
branches-ignore:
- gh-pages
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Cache golangci-lint
uses: actions/cache@preview
with:
path: bin
key: ${{ runner.os }}-golangci-lint-${{ hashFiles('scripts/get-golangci.sh') }}
- name: Cache Go modules
uses: actions/cache@preview
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Check
run: make check
- name: Build
env:
GOPROXY: "https://proxy.golang.org"
run: make build
- name: Unit Test
run: make test
# - name: Acceptance Test
# env:
# CONFLUENCE_SITE: ${{ secrets.CONFLUENCE_SITE }}
# CONFLUENCE_USER: ${{ secrets.CONFLUENCE_USER }}
# CONFLUENCE_TOKEN: ${{ secrets.CONFLUENCE_TOKEN }}
# CONFLUENCE_SPACE: ${{ secrets.CONFLUENCE_SPACE }}
# run: make testacc