Skip to content

Commit 016ceaa

Browse files
committed
Rewrite
This is a full rewrite of this package including the following features/changes: * ext-uv adapter * child process adapter * fallback (blocking) adapter (for native Windows) * simplified the internals to remove unnecessary complexity * file_get_contents/file_put_contents like API to read/write from/to files * start has become an object instead of an array This PR doesn't include the following features/changes as those will be added in with followup PR's: * ext-eio adapter * macos support * mode support to define permissions when creating files/directories * symlinks read/creating/deleting * deleting of directories
1 parent fc89dc2 commit 016ceaa

File tree

133 files changed

+4759
-8098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+4759
-8098
lines changed

.github/workflows/ci.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
name: PHPUnit (PHP ${{ matrix.php }} with ${{ matrix.extensions }} on ${{ matrix.os }})
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
- windows-latest
17+
php:
18+
- "8.1"
19+
- "8.0"
20+
- "7.4"
21+
extensions:
22+
- ""
23+
- "uv-amphp/ext-uv@master"
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Install libuv
27+
if: matrix.os == 'ubuntu-latest'
28+
run: sudo apt-get install libuv1-dev
29+
- uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
coverage: pcov
33+
extensions: ${{ matrix.extensions }}
34+
- run: composer install
35+
- run: vendor/bin/phpunit --coverage-text --debug
36+
PHPUnit-Docker:
37+
name: PHPUnit (PHP ${{ matrix.php }} on Docker)
38+
runs-on: ubuntu-latest
39+
container:
40+
image: wyrihaximusnet/php:${{ matrix.php }}-nts-alpine-slim-dev-root
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
php:
45+
- "8.1"
46+
- "8.0"
47+
- "7.4"
48+
steps:
49+
- uses: actions/checkout@v2
50+
- run: composer install
51+
- run: vendor/bin/phpunit --coverage-text

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
vendor
2+
.phpunit.result.cache

.travis.yml

-29
This file was deleted.

0 commit comments

Comments
 (0)