Skip to content

Commit

Permalink
Merge pull request #34 from SolaceDev/SOL-78484
Browse files Browse the repository at this point in the history
SOL-78484: Update automation for go version 1.21
  • Loading branch information
RagnarPaulson authored Nov 22, 2023
2 parents 911e818 + e4c0fa1 commit 7af7bfd
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ./...

Expand Down

0 comments on commit 7af7bfd

Please sign in to comment.