Skip to content

Commit

Permalink
chore: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Sep 2, 2024
1 parent 16d1afd commit 12bb212
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 1,098 deletions.
118 changes: 0 additions & 118 deletions .github/workflows/dusk-tests.yml

This file was deleted.

6 changes: 1 addition & 5 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ jobs:
needs: rector
uses: ./.github/workflows/pest-tests.yml

dusk-tests:
needs: rector
uses: ./.github/workflows/dusk-tests.yml

ci-passed:
needs: [pest-tests, dusk-tests]
needs: [pest-tests]
runs-on: ubuntu-latest
steps:
- run: echo "All CI checks passed!"
32 changes: 0 additions & 32 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -91,34 +91,6 @@ run_command() {
printf " ${GREEN}(%.2fs) No errors found${NC}\n" "$duration"
return 0
fi
elif [ "$1" = "Running Pest tests" ] || [ "$1" = "Running Dusk tests" ]; then
if echo "$output" | grep -q "No \"dirty\" tests found"; then
print_result 2
printf " ${CYAN}(%.2fs) Tests skipped (no relevant changes)${NC}\n" "$duration"
return 0
elif echo "$output" | grep -q " FAILURES!"; then
print_result 1
printf " ${RED}(%.2fs)${NC}\n" "$duration"
printf "\n${RED}Test Failures:${NC}\n"
echo "$output" | sed -n '/FAILURES!/,/ERRORS!/p' | while IFS= read -r line; do
printf "${RED}%s${NC}\n" "$line"
done
return 1
elif [ $exit_code -eq 0 ]; then
print_result 0
printf " ${GREEN}(%.2fs)${NC}\n" "$duration"
if [ "$1" = "Running Pest tests" ]; then
echo "$output" | grep "Tests:" >&2
elif [ "$1" = "Running Dusk tests" ]; then
echo "$output" | grep "OK (" >&2
fi
return 0
else
print_result 1
printf " ${RED}(%.2fs)${NC}\n" "$duration"
printf "\n${RED}Test Error:${NC}\n%s\n\n" "$output"
return 1
fi
elif [ "$1" = "Checking code style" ]; then
if echo "$output" | grep -q "LGTM!"; then
print_result 0
Expand Down Expand Up @@ -192,7 +164,6 @@ run_command() {
commands=(
"Running Static Analysis:./vendor/bin/phpstan analyse --no-progress"
"Running Pest tests:./vendor/bin/pest --parallel --dirty --bail"
"Running Dusk tests:php artisan dusk --dirty --bail"
"Checking Code Style:./vendor/bin/duster lint"
"Checking for Refactoring Opportunities:./vendor/bin/rector --no-progress-bar --dry-run"
"Checking Prettier formatting:npx prettier --check resources/"
Expand Down Expand Up @@ -245,9 +216,6 @@ else
"Running Pest tests")
printf " ${YELLOW}To fix: Run '${CYAN}./vendor/bin/pest${YELLOW}' and fix failing tests${NC}\n"
;;
"Running Dusk tests")
printf " ${YELLOW}To fix: Run '${CYAN}php artisan dusk${YELLOW}' and fix failing browser tests${NC}\n"
;;
"Checking code style")
printf " ${YELLOW}To fix: Run '${CYAN}./vendor/bin/duster fix${YELLOW}' to automatically fix style issues${NC}\n"
;;
Expand Down
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
"require": {
"php": "^8.2",
"afatmustafa/blade-hugeicons": "^0.0.3",
"blade-ui-kit/blade-heroicons": "^2.3",
"danharrin/livewire-rate-limiting": "^1.3",
"diglactic/laravel-breadcrumbs": "^9.0",
"jenssegers/agent": "^2.6",
"laragear/two-factor": "^2.0",
"laravel/framework": "^11.9",
"laravel/horizon": "^5.24",
"laravel/pail": "^1.1",
"laravel/pennant": "^1.10",
"laravel/pulse": "^1.2",
"laravel/reverb": "@beta",
Expand All @@ -27,8 +25,7 @@
"masmerise/livewire-toaster": "^2.2",
"motomedialab/simple-laravel-audit": "^1.2",
"phpseclib/phpseclib": "~3.0",
"socialiteproviders/bitbucket": "^4.1",
"spatie/laravel-flare": "^1.0"
"socialiteproviders/bitbucket": "^4.1"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.13",
Expand All @@ -37,7 +34,6 @@
"fakerphp/faker": "^1.23",
"larastan/larastan": "^2.0",
"laravel/breeze": "^2.0",
"laravel/dusk": "^8.2",
"laravel/pint": "^1.16",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
Expand Down
Loading

0 comments on commit 12bb212

Please sign in to comment.