Upgraded Sentry for logging #106
Workflow file for this run
This file contains hidden or 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
# .github/workflows/tests.yml | |
name: Tests | |
on: | |
push: | |
branches: | |
- '!main' | |
- '!release-**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint-app: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: "duster" | |
uses: tighten/duster-action@v3 | |
with: | |
args: lint --using=pint -v | |
test-app: | |
needs: lint-app | |
runs-on: ubuntu-24.04 | |
services: | |
meilisearch: | |
image: getmeili/meilisearch:v1.10 | |
ports: | |
- 7700:7700 | |
env: | |
MEILI_MASTER_KEY: masterKey | |
MEILI_NO_ANALYTICS: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.4' | |
coverage: xdebug | |
- name: Create SQLite Database | |
run: | | |
touch database/testing.sqlite | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Copy Environment File | |
run: cp .env.ci .env | |
- name: Generate App Key | |
run: php artisan key:generate | |
- name: Run Tests | |
run: php artisan test --parallel | |
env: | |
SCOUT_DRIVER: meilisearch | |
MEILISEARCH_HOST: 127.0.0.1:7700 | |
MEILISEARCH_KEY: masterKey | |
build-image: | |
# needs: [lint-app, test-app] | |
needs: [lint-app] | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: false | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
target: production |