cc-units/.github/workflows/go.yml

78 lines
1.8 KiB
YAML
Raw Normal View History

2022-03-15 16:55:02 +01:00
# 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:
2022-06-08 14:43:45 +02:00
#
# 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
2022-03-15 16:55:02 +01:00
#
# 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
2022-06-08 14:43:45 +02:00
uses: actions/setup-go@v3
2022-03-15 16:55:02 +01:00
with:
go-version: '^1.17.7'
2022-03-15 16:57:47 +01:00
- name: Create module
2022-06-08 14:43:45 +02:00
run: go build
2022-03-15 16:55:02 +01:00
- name: Test
2022-03-15 16:57:47 +01:00
run: go test -v
2022-03-15 16:55:02 +01:00
#
# 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
2022-06-08 14:43:45 +02:00
uses: actions/setup-go@v3
2022-03-15 16:55:02 +01:00
with:
go-version: '^1.16.7' # The version AlmaLinux 8.5 uses
2022-03-15 16:57:47 +01:00
- name: Create module
2022-06-08 14:43:45 +02:00
run: go build
2022-03-15 16:55:02 +01:00
- name: Test
2022-03-15 16:57:47 +01:00
run: go test -v