add rudimentary .tool-versions parser

This commit is contained in:
plukevdh 2023-05-19 15:17:09 -04:00
parent fac708d667
commit fc952ad45a
No known key found for this signature in database
GPG key ID: 4CDF66F8A7057826
5 changed files with 148 additions and 59 deletions

View file

@ -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 }}