Skip to content

ci: #137 github actions phpunit #3

ci: #137 github actions phpunit

ci: #137 github actions phpunit #3

Workflow file for this run

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 }}