Update go.yml

This commit is contained in:
Thomas Gruber 2022-06-08 14:43:45 +02:00 committed by GitHub
parent c376de5645
commit 087634f660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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