From 087634f660047d31d5baee61098abc699b7a5c22 Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Wed, 8 Jun 2022 14:43:45 +0200 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2f95a9d..6637053 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,6 +7,29 @@ name: Run # See: https://docs.github.com/en/actions/using-workflows/workflow-syn on: push jobs: + # + # Job build-1-18 + # Build on latest Ubuntu using golang version 1.18 + # + build-1-18: + runs-on: ubuntu-latest + steps: + # See: https://github.com/marketplace/actions/checkout + # Checkout git repository and submodules + - uses: actions/checkout@v2 + + # See: https://github.com/marketplace/actions/setup-go-environment + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '^1.18.2' + + - name: Create module + run: go build + + - name: Test + run: go test -v + # # Job build-1-17 # Build on latest Ubuntu using golang version 1.17 @@ -20,12 +43,12 @@ jobs: # See: https://github.com/marketplace/actions/setup-go-environment - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: '^1.17.7' - name: Create module - run: go mod init github.com/ClusterCockpit/cc-units + run: go build - name: Test run: go test -v @@ -43,12 +66,12 @@ jobs: # See: https://github.com/marketplace/actions/setup-go-environment - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: '^1.16.7' # The version AlmaLinux 8.5 uses - name: Create module - run: go mod init github.com/ClusterCockpit/cc-units + run: go build - name: Test run: go test -v