forked from instana/go-sensor
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.05 KB
/
golang_rc_candidate_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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="$rcToInstall"
go1.23rc2 download
go1.23rc2 version