Skip to content

Instantly share code, notes, and snippets.

View brodos's full-sized avatar

Lucian B. brodos

View GitHub Profile
@brodos
brodos / php-cs-fixer.yml
Created December 23, 2021 13:20
Github Actions workflow to check and fix styling using PHP CS Fixer
name: Check & fix styling
on:
push:
branches: [main, develop]
pull_request:
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
@brodos
brodos / laravel-tests-with-mysql.yml
Last active December 23, 2021 13:19
Github Actions workflow for setting up PHPUnit testing for a Laravel project using a MySQL database
name: Laravel Tests
on:
push:
branches: [main, develop]
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
# session management
tmux ls (or tmux list-sessions)
tmux new -s session-name
Ctrl-b d Detach from session
tmux attach -t [session name]
tmux kill-session -t session-name
Ctrl-b c Create new window
Ctrl-b d Detach current client