3
0
Fork 0
mirror of https://gitea.com/actions/setup-go.git synced 2024-11-25 19:19:33 +01:00
setup-go/.github/workflows/versions.yml

52 lines
1,015 B
YAML
Raw Normal View History

2020-02-09 06:21:39 +01:00
name: go-versions
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
run:
name: Go
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
2020-02-10 01:25:28 +01:00
- name: setup-go ^1.13.6
2020-02-09 06:21:39 +01:00
uses: ./
with:
2020-02-10 01:25:28 +01:00
go-version: ^1.13.6
2020-02-09 06:21:39 +01:00
2020-02-10 01:25:28 +01:00
- name: validate version
2020-03-26 15:38:51 +01:00
run: go version | grep "go1."
2020-02-10 01:25:28 +01:00
- name: setup-go 1.13
uses: ./
with:
go-version: 1.13
- name: validate version
run: go version | grep "go1.13."
- name: setup-go 1.12.9
uses: ./
with:
go-version: 1.12.9
2020-02-10 01:20:43 +01:00
- name: validate version
2020-02-10 01:25:28 +01:00
run: go version | grep "go1.12.9"
2020-03-26 15:38:51 +01:00
2020-03-26 16:53:35 +01:00
- name: dump env
2020-03-26 15:55:21 +01:00
shell: bash
2020-03-26 15:38:51 +01:00
run: |
2020-03-26 16:53:35 +01:00
echo $PATH
2020-03-26 15:38:51 +01:00
echo go versions in tool cache:
echo $(ls $RUNNER_TOOL_CACHE/go)