mirror of
https://code.forgejo.org/actions/setup-go.git
synced 2024-12-24 22:12:13 -05:00
wf update
This commit is contained in:
parent
a037787d02
commit
87e783e981
1 changed files with 19 additions and 7 deletions
26
.github/workflows/versions.yml
vendored
26
.github/workflows/versions.yml
vendored
|
@ -15,18 +15,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
version: [1.13, 1.12.9]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: setup-go ${{ matrix.version }}
|
- name: setup-go ^1.13.6
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.version }}
|
go-version: ^1.13.6
|
||||||
|
|
||||||
- name: match ${{ matrix.version }}
|
|
||||||
run: go version
|
|
||||||
|
|
||||||
- name: validate version
|
- name: validate version
|
||||||
run: go version | grep "go${{ matrix.version }}"
|
run: go version | grep "go1.13."
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
- name: validate version
|
||||||
|
run: go version | grep "go1.12.9"
|
||||||
|
|
Loading…
Reference in a new issue