Skip to content

Commit cd1b6e7

Browse files
authored
Change GitHub actions to fit my standard (#3)
1 parent 5de4f98 commit cd1b6e7

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
name: PHP Linting (Pint)
1+
name: code-style
2+
23
on:
34
workflow_dispatch:
45
push:
56
branches-ignore:
67
- "dependabot/npm_and_yarn/*"
78
jobs:
8-
phplint:
9+
pint:
910
runs-on: ubuntu-latest
11+
name: Pint
1012
steps:
1113
- name: Checkout code
1214
uses: actions/checkout@v4
1315
with:
1416
fetch-depth: 2
17+
1518
- name: "laravel-pint"
1619
uses: aglipanci/laravel-pint-action@0.1.0
1720
with:
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
name: Tests
1+
name: run-tests
22

33
on:
44
workflow_dispatch:
55
push:
66
branches-ignore:
77
- "dependabot/npm_and_yarn/*"
88

9-
permissions:
10-
contents: read
11-
129
jobs:
13-
build:
10+
test:
1411
runs-on: ubuntu-latest
1512

1613
strategy:
1714
fail-fast: true
1815
matrix:
19-
php: [8.0, 8.1, 8.2, 8.3]
16+
os: [ubuntu-latest]
17+
php: [8.02, 8.1, 8.2, 8.3]
2018

2119
name: PHP ${{ matrix.php }}
2220

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

39-
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
40-
# Docs: https://getcomposer.org/doc/articles/scripts.md
41-
42-
- name: Run test suite
37+
- name: Execute tests
4338
run: composer test

0 commit comments

Comments
 (0)