/run-test.yml Secret
Created
November 23, 2022 00:35
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 characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment