Skip to content

Commit

Permalink
Matrix test
Browse files Browse the repository at this point in the history
Signed-off-by: Janos Bonic <[email protected]>
  • Loading branch information
Janos Bonic committed Dec 22, 2023
1 parent e27caec commit c29d552
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,32 @@ jobs:
linux:
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
distro: [alpine, debian, fedora, opensuse, rocky, ubuntu]
method: [auto, brew, manual, portable, snap]
shell: [ash, bash, dash, ksh, zsh]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test
env:
DISTRO: ${{ matrix.distro }}
METHOD: ${{ matrix.method }}
SH: ${{ matrix.shell }}
run: |
cd tests/linux
./test-all.sh
./test.sh
macos:
name: MacOS
runs-on: macos-latest
strategy:
matrix:
method: [auto, brew, portable]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test
run: |
cd tests/macos
./test.sh
./${{ matrix.method }}.sh
File renamed without changes.
7 changes: 7 additions & 0 deletions tests/macos/brew.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -ex

../../src/install.sh --debug --install-method "brew"

tofu --version
7 changes: 7 additions & 0 deletions tests/macos/portable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -ex

../../src/install.sh --debug --install-method "portable"

tofu --version

0 comments on commit c29d552

Please sign in to comment.