mirror of
https://github.com/ClusterCockpit/cc-units.git
synced 2024-12-26 05:29:06 +01:00
Merge branch 'main' of github.com:ClusterCockpit/cc-units into main
This commit is contained in:
commit
70cc2cbe8e
54
.github/workflows/go.yml
vendored
Normal file
54
.github/workflows/go.yml
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
|
||||
|
||||
# Workflow name
|
||||
name: Run # See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actionsTests
|
||||
|
||||
# Run on event push
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
#
|
||||
# Job build-1-17
|
||||
# Build on latest Ubuntu using golang version 1.17
|
||||
#
|
||||
build-1-17:
|
||||
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@v2
|
||||
with:
|
||||
go-version: '^1.17.7'
|
||||
|
||||
- name: Create module
|
||||
run: go mod init github.com/ClusterCockpit/cc-units
|
||||
|
||||
- name: Test
|
||||
run: go test -v
|
||||
|
||||
#
|
||||
# Job build-1-16
|
||||
# Build on latest Ubuntu using golang version 1.16
|
||||
#
|
||||
build-1-16:
|
||||
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@v2
|
||||
with:
|
||||
go-version: '^1.16.7' # The version AlmaLinux 8.5 uses
|
||||
|
||||
- name: Create module
|
||||
run: go mod init github.com/ClusterCockpit/cc-units
|
||||
|
||||
- name: Test
|
||||
run: go test -v
|
Loading…
Reference in New Issue
Block a user