* #9 - set up inertia and tailwind * #9 - fix * #9 - headless ui, heroicons and some webpack stuff * #9 - fix * #9 - fix * #9 - fix * #9 - eslint * #9 - github pr review * #9 - run linter manually * Update resources/js/Pages/Dashboard.vue Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * #9 - fix * Update .eslintrc.js Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
This commit is contained in:
40
.github/workflows/test-and-lint-php.yml
vendored
Normal file
40
.github/workflows/test-and-lint-php.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Test & lint PHP stuff
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
test-and-lint-php:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Validate composer.json and composer.lock
|
||||
run: composer validate
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-composer-dependencies-${{ hashFiles('composer.lock') }}
|
||||
restore-keys: ${{ runner.os }}-composer-dependencies
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.1
|
||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, intl
|
||||
coverage: none
|
||||
|
||||
- name: Install Composer dependencies
|
||||
run: composer install --prefer-dist --no-interaction --no-suggest
|
||||
|
||||
- name: Run PHP linter
|
||||
run: composer ecs
|
||||
|
||||
- name: Execute tests
|
||||
run: php artisan test --env=ci
|
Reference in New Issue
Block a user