mirror of
https://github.com/ClusterCockpit/cc-units.git
synced 2024-12-25 13:09:06 +01:00
Update go.yml
This commit is contained in:
parent
c376de5645
commit
087634f660
31
.github/workflows/go.yml
vendored
31
.github/workflows/go.yml
vendored
@ -7,6 +7,29 @@ name: Run # See: https://docs.github.com/en/actions/using-workflows/workflow-syn
|
|||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
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
|
# Job build-1-17
|
||||||
# Build on latest Ubuntu using golang version 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
|
# See: https://github.com/marketplace/actions/setup-go-environment
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '^1.17.7'
|
go-version: '^1.17.7'
|
||||||
|
|
||||||
- name: Create module
|
- name: Create module
|
||||||
run: go mod init github.com/ClusterCockpit/cc-units
|
run: go build
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v
|
run: go test -v
|
||||||
@ -43,12 +66,12 @@ jobs:
|
|||||||
|
|
||||||
# See: https://github.com/marketplace/actions/setup-go-environment
|
# See: https://github.com/marketplace/actions/setup-go-environment
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '^1.16.7' # The version AlmaLinux 8.5 uses
|
go-version: '^1.16.7' # The version AlmaLinux 8.5 uses
|
||||||
|
|
||||||
- name: Create module
|
- name: Create module
|
||||||
run: go mod init github.com/ClusterCockpit/cc-units
|
run: go build
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v
|
run: go test -v
|
||||||
|
Loading…
Reference in New Issue
Block a user