Skip to content
name: Run unit & integration tests against Golang RC version
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: RC version check
runs-on: ubuntu-latest
# env:
# # COSMOS_CONNECTION_URL: ${{ secrets.COSMOS_CONNECTION_URL }}
# # COSMOS_KEY: ${{ secrets.COSMOS_KEY }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run coverage commands
shell: bash
run: |
#!/bin/bash
shopt -s expand_aliases
echo "Dealing with Golang RC version!"
rcToInstall=$(git ls-remote -t https://github.com/golang/go | awk -F/ '{ print $NF }' | sort -V |grep rc | tail -1 | tr -d ' ')
echo "RC version : $rcToInstall"
url="golang.org/dl/$rcToInstall@latest"
echo "RC URL : $url"
go install $url
ls ~/go
ls ~/go/bin
# which go1.23rc2
# alias gorc="~/go/bin/go1.23rc2"
gorc download
gorc version