Browse Source

Updated the build system

main
Cédric Belin 3 weeks ago
parent
commit
4a89b5696a
4 changed files with 2 additions and 16 deletions
  1. +2
    -2
      .github/workflows/build.yaml
  2. +0
    -4
      tool/coverage.ps1
  3. +0
    -6
      tool/lint.ps1
  4. +0
    -4
      tool/test.ps1

+ 2
- 2
.github/workflows/build.yaml View File

@@ -25,9 +25,9 @@ jobs:
composer config --global github-oauth.github.com ${{secrets.GITHUB_TOKEN}}
composer install --no-interaction
- name: Run tests
run: composer run-script test
run: composer run test
- name: Collect code coverage
env:
COVERALLS_REPO_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: success()
run: composer run-script coverage
run: composer run coverage

+ 0
- 4
tool/coverage.ps1 View File

@@ -1,4 +0,0 @@
#!/usr/bin/env pwsh
Set-StrictMode -Version Latest
Set-Location (Split-Path $PSScriptRoot)
composer run-script coverage

+ 0
- 6
tool/lint.ps1 View File

@@ -1,6 +0,0 @@
#!/usr/bin/env pwsh
Set-StrictMode -Version Latest
Set-Location (Split-Path $PSScriptRoot)

php -l example/main.php
composer run-script lint

+ 0
- 4
tool/test.ps1 View File

@@ -1,4 +0,0 @@
#!/usr/bin/env pwsh
Set-StrictMode -Version Latest
Set-Location (Split-Path $PSScriptRoot)
composer run-script test

Loading…
Cancel
Save