fix: improve timezone handling and show converted timezones across app #92
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
name: Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.2', '8.3', '8.4'] | |
name: PHP ${{ matrix.php }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, dom, fileinfo, pdo_sqlite | |
coverage: xdebug | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- name: Install Composer Dependencies | |
run: composer install --prefer-dist --no-interaction --no-progress | |
- name: Copy Environment File | |
run: cp .env.example .env | |
- name: Generate App Key | |
run: php artisan key:generate | |
- name: Configure SQLite Database | |
run: | | |
mkdir -p database | |
touch database/database.sqlite | |
echo "DB_CONNECTION=sqlite" >> .env | |
echo "DB_DATABASE=${{ github.workspace }}/database/database.sqlite" >> .env | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Build Assets | |
run: npm run build | |
- name: Run Database Migrations | |
run: php artisan migrate --force | |
- name: Run Pest Tests | |
run: vendor/bin/pest |