From 255b5ed5742819d1ed306f522dc287aeeee2a95c Mon Sep 17 00:00:00 2001 From: Gareth Watts Date: Thu, 8 Aug 2019 21:50:22 -0700 Subject: [PATCH 1/3] Go action testing --- .github/workflows/go.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..40ebd85 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,38 @@ +name: Go +on: [push] +jobs: + test: + name: Test on node ${{ matrix.go_version }} and ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + go_version: [1.6, 1.9, 1.12] + os: ubuntu-latest + + steps: + - name: Set up Go ${{ matrix.go_version }} + uses: actions/setup-go@v1 + with: + version: ${{ matrix.go_version }} + id: go + + - name: Check out code into the Go module directory + use: actions/checkout@master + path: ${{ go.module-path }} + + - name: Get dependencies + working-directory: ${{ go.module-path }} + run: | + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + + - name: Build + working-directory: ${{ go.module-path }} + run: go build -v . + + - name: Test + working-directory: ${{ go.module-path }} + run: go test -v . From 75fc506e60447086a04de17f5fecc758c2b96f78 Mon Sep 17 00:00:00 2001 From: Gareth Watts Date: Thu, 8 Aug 2019 21:59:43 -0700 Subject: [PATCH 2/3] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 40ebd85..639353a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: go_version: [1.6, 1.9, 1.12] - os: ubuntu-latest + os: [ubuntu-latest] steps: - name: Set up Go ${{ matrix.go_version }} From e15898a6c5b0278d0b221ce065566bcc28c00ca3 Mon Sep 17 00:00:00 2001 From: Gareth Watts Date: Thu, 8 Aug 2019 22:01:00 -0700 Subject: [PATCH 3/3] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 639353a..d2e25a5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,7 @@ jobs: id: go - name: Check out code into the Go module directory - use: actions/checkout@master + uses: actions/checkout@master path: ${{ go.module-path }} - name: Get dependencies