ci: #137 github actions phpunit #3
Workflow file for this run
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: laravel-11 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
container: | |
image: laravelfans/laravel:11-dev | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: GitHub Environment Variables Action | |
uses: FranzDiebold/[email protected] | |
- name: Prepare | |
run: | | |
composer install | |
npm install | |
npm run build | |
- name: PHPUnit | |
run: | | |
php artisan test --log-junit junit.xml | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |