Skip to content

Commit

Permalink
chore: try to run tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd committed Jul 26, 2024
1 parent dc4c32f commit 5ca3d15
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,19 @@ jobs:
- "8.3"
operating-system:
- "ubuntu-latest"
- "windows-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Install dependencies"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: |
sudo apt-get update && sudo apt-get install libbrotli1 liblz4-1 libzstd1 --assume-yes
- name: "Install PHP"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
uses: "shivammathur/setup-php@v2"
with:
tools: composer:v2
Expand All @@ -58,6 +61,15 @@ jobs:
env:
SNAPPY_CONFIGURE_PREFIX_OPTS: "CXXFLAGS=-std=c++11"

- name: "Install PHP"
if: ${{ matrix.operating-system == 'windows-latest' }}
uses: "shivammathur/setup-php@v2"
with:
tools: composer:v2
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: :psr

- name: "List PHP Extensions"
run: php -m

Expand Down Expand Up @@ -90,13 +102,17 @@ jobs:
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Test Brotli"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: "composer test -- --group brotli-extension"

- name: "Test LZ4"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: "composer test -- --group lz4-extension"

- name: "Test ZSTD"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: "composer test -- --group zstd-extension"

- name: "Test Snappy"
run: "composer test -- --group snappy-extension"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: "composer test -- --group snappy-extension"
1 change: 1 addition & 0 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
- "8.3"
operating-system:
- "ubuntu-latest"
- "windows-latest"

steps:
- name: "Checkout"
Expand Down

0 comments on commit 5ca3d15

Please sign in to comment.