You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
setup-go/.github/workflows/versions.yml

52 lines
1015 B
YAML

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
5 years ago
- name: setup-go ^1.13.6
uses: ./
with:
5 years ago
go-version: ^1.13.6
5 years ago
- name: validate version
run: go version | grep "go1."
5 years ago
- 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
5 years ago
- name: validate version
5 years ago
run: go version | grep "go1.12.9"
5 years ago
- name: dump env
5 years ago
shell: bash
run: |
5 years ago
echo $PATH
echo go versions in tool cache:
echo $(ls $RUNNER_TOOL_CACHE/go)