From ee0c06d8546fe57b83e525de85f9ca243adb33c4 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 14 Aug 2019 11:13:36 +0300 Subject: [PATCH 1/4] Iris part of github actions beta program: workflow Former-commit-id: 2a0af2f541b37b7b87b0b686fa27a8ab04e4682e --- .github/workflows/go.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 00000000..ef0877a4 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,32 @@ +name: Go +on: + push: + branches: + - master +jobs: + + build: + name: Build + runs-on: + - ubuntu-latest + - macOS-latest + - windows-latest + steps: + + - name: Set up Go 1.12 + uses: actions/setup-go@v1 + with: + version: 1.12 + 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 ./... + - name: Build + working-directory: ${{ go.module-path }} + run: go build -v . From 30bebb7661f6254964a683b8d2a1822c7058c7ac Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 14 Aug 2019 11:15:21 +0300 Subject: [PATCH 2/4] Update go.yml Former-commit-id: ce33f805075465f3ad736ea73229fc4214cfe515 --- .github/workflows/go.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ef0877a4..1187d07f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,10 +7,7 @@ jobs: build: name: Build - runs-on: - - ubuntu-latest - - macOS-latest - - windows-latest + runs-on: ubuntu-latest steps: - name: Set up Go 1.12 From 5f49d72b06dfc667d7f1fe31879e02893fd6f441 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 14 Aug 2019 11:16:31 +0300 Subject: [PATCH 3/4] Update go.yml Former-commit-id: e58e581c6d41ca346fbfbe3d4126b03e61b1c1c6 --- .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 1187d07f..25f15de3 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 From 62b0a12f91727a91d6c89c8b1a1cb87de82c6c64 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 14 Aug 2019 11:20:38 +0300 Subject: [PATCH 4/4] Github Workflow: the example file was wrong Former-commit-id: 08dc76cc49c7ea7d73188e2f8886a4139b6d776d --- .github/workflows/go.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 25f15de3..dfb256aa 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,8 +1,5 @@ name: Go -on: - push: - branches: - - master +on: [push] jobs: build: @@ -18,12 +15,9 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@master - path: ${{ go.module-path }} - name: Get dependencies - working-directory: ${{ go.module-path }} run: | go get -v -t -d ./... - name: Build - working-directory: ${{ go.module-path }} run: go build -v .