From 619bcb39e0e7f9a510b83c50dee99b94740c3fba Mon Sep 17 00:00:00 2001 From: Esther Kim Date: Mon, 23 Nov 2020 16:53:18 +0900 Subject: [PATCH] Test workflow with Github Actions --- .github/workflows/go-test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/go-test.yml diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 0000000..f3a38f6 --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,31 @@ +name: GoTest + +on: + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.14 + uses: actions/setup-go@v2 + with: + go-version: 1.14 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + cd plugin/openinfradev.github.com/v1/helmvaluestransformer + go get -v -t -d ./... + + - name: Build + run: go build -buildmode plugin -o HelmValuesTransformer.so HelmValuesTransformer.go + + - name: Test + run: go test -v .