Skip to content

Commit c0b3a6d

Browse files
committed
chore: Update GitHub Actions
1 parent 2fe7eaf commit c0b3a6d

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

.github/workflows/tests.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
# name: PHP Composer
1+
name: PHP Composer
22

3-
# on:
4-
# push:
5-
# branches: [ "main" ]
6-
# pull_request:
7-
# branches: [ "main" ]
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
88

9-
# permissions:
10-
# contents: read
9+
permissions:
10+
contents: read
1111

12-
# jobs:
13-
# build:
14-
# runs-on: ubuntu-latest
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
1515

16-
# steps:
17-
# - uses: actions/checkout@v4
16+
steps:
17+
- uses: actions/checkout@v4
1818

19-
# - name: Validate composer.json and composer.lock
20-
# run: composer validate --strict
19+
- name: Validate composer.json and composer.lock
20+
run: composer validate --strict
2121

22-
# - name: Cache Composer packages
23-
# id: composer-cache
24-
# uses: actions/cache@v3
25-
# with:
26-
# path: vendor
27-
# key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
28-
# restore-keys: |
29-
# ${{ runner.os }}-php-
22+
- name: Cache Composer packages
23+
id: composer-cache
24+
uses: actions/cache@v3
25+
with:
26+
path: vendor
27+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-php-
3030
31-
# - name: Install dependencies
32-
# run: composer install --prefer-dist --no-progress
31+
- name: Install dependencies
32+
run: composer install --prefer-dist --no-progress
3333

34-
# - name: Run PHPStan
35-
# run: ./vendor/bin/phpstan
34+
- name: Run PHPStan
35+
run: ./vendor/bin/phpstan
3636

37-
# - name: Run Pest tests
38-
# run: ./vendor/bin/pest
37+
- name: Run Pest tests
38+
run: ./vendor/bin/pest

0 commit comments

Comments
 (0)