/run-test.yml Secret
Created
November 23, 2022 00:35
Revisions
-
peterfox created this gist
Nov 23, 2022 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ name: run-tests on: push: pull_request: branches: [ main ] env: APP_KEY: base64:eKPh6g5fsCHE9Upe5m++NHasEhJzFkqgUUhf59E4BkU= jobs: test: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: 8.1 extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_sqlite tools: composer:v2 coverage: pcov - uses: ramsey/composer-install@v2 - name: Execute tests run: php artisan test --coverage --coverage-clover storage/coverage/coverage.xml - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./storage/coverage/coverage.xml