forked from SolaceProducts/pubsubplus-go-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from SolaceDev/SOL-78484
SOL-78484: Update automation for go version 1.21
- Loading branch information
Showing
1 changed file
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,32 @@ on: [push, pull_request, workflow_dispatch] | |
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
# This workflow contains multiple jobs | ||
# this job sets up the oldest version of go to check lang compatibility | ||
CompatibilityCheck: | ||
runs-on: ubuntu-20.04 | ||
#Steps for the compatiblity test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Go Environment | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.17.0' | ||
- name: Check Go Version | ||
run: go version | ||
- name: Compiles | ||
run: go build ./... | ||
- name: Runs unit tests | ||
if: ${{ success() }} | ||
run: go test -coverprofile ./unitcoverage.out ./... | ||
- name: Uploads artifacts | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: | | ||
./unitcoverage.out | ||
# this job runs linux based tests | ||
Linux: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-20.04 | ||
|
@@ -17,7 +42,10 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.21' | ||
check-latest: true | ||
- name: Check Go Version | ||
run: go version | ||
- name: Compiles | ||
run: go build ./... | ||
|
||
|