Skip to content

Commit

Permalink
Test running tests on WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
erijo committed Jan 7, 2025
1 parent 1d69ce3 commit 430a682
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,23 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-24.04
- macos-13
- macos-15
# - ubuntu-20.04
# - ubuntu-24.04
# - macos-13
# - macos-15
- windows-2022
defaults:
run:
shell: ${{ matrix.os == 'windows-2022' && 'wsl-bash {0}' || '' }}

steps:
- uses: actions/checkout@v4

- name: Install dependencies on Linux
if: ${{ runner.os == 'Linux' }}
- uses: Vampire/setup-wsl@v4
if: ${{ runner.os == 'Windows' }}

- name: Install dependencies on Linux/WSL
if: ${{ runner.os != 'macOS' }}
run: |
sudo apt-get update
sudo apt-get install -y expect
Expand All @@ -39,11 +47,13 @@ jobs:
command -v expect || brew install expect
- name: Prepare tools directory
if: ${{ runner.os != 'Windows' }}
run: |
mkdir "$RUNNER_TEMP/tools"
echo "$RUNNER_TEMP/tools" >> "$GITHUB_PATH"
- name: Install shellcheck
if: ${{ runner.os != 'Windows' }}
run: |
if [ "$RUNNER_OS" = "macOS" ]; then
OS=darwin
Expand All @@ -65,6 +75,7 @@ jobs:
mv shellcheck-v$SC_VER/shellcheck tools
- name: Install esh
if: ${{ runner.os != 'Windows' }}
run: |
cd "$RUNNER_TEMP/tools"
Expand Down

0 comments on commit 430a682

Please sign in to comment.