Skip to content

Commit

Permalink
fix: add tests ci
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Nov 8, 2024
1 parent 2ac5709 commit abd2eac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Tests"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on: [pull_request]
jobs:
build:
name: Build & Unit
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Unit Tests
run: docker compose exec -T tests vendor/bin/phpunit --configuration phpunit.xml --debug --testsuite unit
2 changes: 1 addition & 1 deletion src/Compression/Compression.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static function fromAcceptEncoding(string $acceptEncoding, array $support
if (empty($supported)) {
$supported = [
self::BROTLI => Algorithms\Brotli::isSupported(),
self::GZIP => Algorithms\Gzip::isSupported(),
self::GZIP => Algorithms\GZIP::isSupported(),
self::DEFLATE => Algorithms\Deflate::isSupported(),
self::IDENTITY => true,
];
Expand Down

0 comments on commit abd2eac

Please sign in to comment.