* #1 - project skeleton * #1 - composer fix * #1 - add app key to phpunit config * #1 - change default session driver * #1 - add EXTERNAL_WEBSERVER_PORT variable to .env.example
This commit is contained in:
16
.github/workflows/check-pr-title.yml
vendored
Normal file
16
.github/workflows/check-pr-title.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Check PR Title
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- synchronize
|
||||
- labeled
|
||||
- unlabeled
|
||||
|
||||
jobs:
|
||||
check-pr-title:
|
||||
name: Check PR title
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: blumilksoftware/action-pr-title@v1.2.0
|
40
.github/workflows/test-and-lint.yml
vendored
Normal file
40
.github/workflows/test-and-lint.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Build & Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
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 linter
|
||||
run: composer ecs
|
||||
|
||||
- name: Execute tests
|
||||
run: php artisan test --env=ci
|
Reference in New Issue
Block a user