mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-29 19:44:21 +01:00
Add OpenTofu version file support (#59)
Signed-off-by: Brendon Smith <bws@bws.bio>
This commit is contained in:
1 parent
4a98c1282d
commit
000eeb8522
7 files changed
+258
-2
No files matched your search
@@ -0,0 +1 @@
|
||||
latest
|
||||
@@ -14,6 +14,25 @@ env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
jobs:
|
||||
tofu-version-files:
|
||||
name: 'OpenTofu Version Files'
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
tofu-version-files: ['./.github/workflows/data/local/.opentofu-version']
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup OpenTofu - ${{ matrix['tofu-version-files'] }}
|
||||
uses: ./
|
||||
with:
|
||||
tofu_version_file: ${{ matrix['tofu-version-files'] }}
|
||||
tofu_wrapper: false
|
||||
|
||||
- name: Validate that OpenTofu was installed
|
||||
run: tofu version | grep 'OpenTofu v'
|
||||
tofu-versions:
|
||||
name: 'OpenTofu Versions'
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
Reference in new issue
Block a user