mirror of
https://github.com/actions/setup-go.git
synced 2025-07-23 15:08:28 +02:00
add rudimentary .tool-versions parser
This commit is contained in:
parent
fac708d667
commit
fc952ad45a
5 changed files with 148 additions and 59 deletions
16
.github/workflows/versions.yml
vendored
16
.github/workflows/versions.yml
vendored
|
@ -134,6 +134,22 @@ jobs:
|
|||
run: __tests__/verify-go.sh 1.19
|
||||
shell: bash
|
||||
|
||||
tool-versions-file:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Go and check latest
|
||||
uses: ./
|
||||
with:
|
||||
tool-versions-file: __tests__/data/.tool-versions
|
||||
- name: verify go
|
||||
run: __tests__/verify-go.sh 1.16.3
|
||||
shell: bash
|
||||
|
||||
setup-versions-from-manifest:
|
||||
name: Setup ${{ matrix.go }} ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue