Skip to content

Commit

Permalink
Merge pull request #5 from kiwilan/develop
Browse files Browse the repository at this point in the history
2.0.0
  • Loading branch information
ewilan-riviere authored Jun 8, 2023
2 parents 2c1ddd1 + b7dcdde commit d2053fa
Show file tree
Hide file tree
Showing 20 changed files with 1,195 additions and 623 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@ on:

jobs:
codecov:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1]
stability: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
Expand All @@ -27,8 +19,8 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo
php-version: 8.1
# extensions:
coverage: pcov

- name: apt
Expand All @@ -43,7 +35,7 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
run: composer update --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/pest --coverage
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo
coverage: none

- name: apt
if: runner.os == 'Linux'
run: |
sudo apt-get install vorbis-tools flac
shell: bash
run: sudo apt-get install vorbis-tools flac

- name: scoop
if: runner.os == 'Windows'
Expand All @@ -38,12 +35,8 @@ jobs:
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
scoop update
scoop install flac
scoop bucket add extras
scoop install extras/icecast
cd D:\a\php-audio\php-audio\tests\media
./convert-writer.ps1
ls
scoop install flac extras/icecast
shell: powershell

- name: Setup problem matchers
Expand Down
78 changes: 78 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"intelephense.stubs": [
"apache",
"bcmath",
"bz2",
"calendar",
"com_dotnet",
"Core",
"ctype",
"curl",
"date",
"dba",
"dom",
"enchant",
"exif",
"FFI",
"fileinfo",
"filter",
"fpm",
"ftp",
"gd",
"gettext",
"gmp",
"hash",
"iconv",
"imap",
"intl",
"json",
"ldap",
"libxml",
"mbstring",
"meta",
"mysqli",
"oci8",
"odbc",
"openssl",
"pcntl",
"pcre",
"PDO",
"pdo_ibm",
"pdo_mysql",
"pdo_pgsql",
"pdo_sqlite",
"pgsql",
"Phar",
"posix",
"pspell",
"random",
"readline",
"Reflection",
"session",
"shmop",
"SimpleXML",
"snmp",
"soap",
"sockets",
"sodium",
"SPL",
"sqlite3",
"standard",
"superglobals",
"sysvmsg",
"sysvsem",
"sysvshm",
"tidy",
"tokenizer",
"xml",
"xmlreader",
"xmlrpc",
"xmlwriter",
"xsl",
"Zend OPcache",
"zip",
"zlib",
"imagick",
"rar"
]
}
57 changes: 57 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "install",
"type": "shell",
"command": "composer i",
"problemMatcher": [],
"presentation": {
"revealProblems": "onProblem",
"close": true
}
},
{
"label": "update",
"type": "shell",
"command": "composer update",
"problemMatcher": [],
"presentation": {
"revealProblems": "onProblem",
"close": true
}
},
{
"label": "tests",
"type": "shell",
"command": "composer test",
"problemMatcher": [],
"presentation": {
"revealProblems": "onProblem",
"close": true
}
},
{
"label": "merge-to-main",
"type": "shell",
"command": "git checkout main && git merge develop && git push && git checkout develop",
"problemMatcher": [],
"presentation": {
"revealProblems": "onProblem",
"close": true
}
},
{
"label": "pull-main",
"type": "shell",
"command": "git checkout main && git pull && git checkout develop && git merge main",
"problemMatcher": [],
"presentation": {
"revealProblems": "onProblem",
"close": true
}
}
]
}
Loading

0 comments on commit d2053fa

Please sign in to comment.