Skip to content

Commit

Permalink
Change GitHub actions to fit my standard
Browse files Browse the repository at this point in the history
  • Loading branch information
cable8mm committed Mar 9, 2024
1 parent 5de4f98 commit 024f732
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: PHP Linting (Pint)
name: code-style

on:
workflow_dispatch:
push:
branches-ignore:
- "dependabot/npm_and_yarn/*"
jobs:
phplint:
pint:
runs-on: ubuntu-latest
name: Pint
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: "laravel-pint"
uses: aglipanci/laravel-pint-action@0.1.0
with:
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/tests.yml → .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: Tests
name: run-tests

on:
workflow_dispatch:
push:
branches-ignore:
- "dependabot/npm_and_yarn/*"

permissions:
contents: read

jobs:
build:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.0, 8.1, 8.2, 8.3]
os: [ubuntu-latest]
php: [8.02, 8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }}

Expand All @@ -36,8 +34,5 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

- name: Run test suite
- name: Execute tests
run: composer test

0 comments on commit 024f732

Please sign in to comment.