Skip to content

Commit 3deb122

Browse files
committed
ci: bump actions, add permissions, add PHP versions
1 parent 027d314 commit 3deb122

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

.github/workflows/lint-and-analyse.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
name: Lint and analyse files
22

3+
permissions:
4+
contents: read
5+
36
on: [push]
47

58
jobs:
69
lint-php:
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1013
- name: Use php 7.1
1114
uses: shivammathur/setup-php@v2
1215
with:
1316
php-version: 7.1
1417
- name: Validate composer.json and composer.lock
1518
run: composer validate
1619
- name: Cache module
17-
uses: actions/cache@v2
20+
uses: actions/cache@v4
1821
with:
1922
path: ~/.composer/cache/
2023
key: composer-cache
@@ -26,13 +29,13 @@ jobs:
2629
analyse-php:
2730
runs-on: ubuntu-latest
2831
steps:
29-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
3033
- name: Use php 7.1
3134
uses: shivammathur/setup-php@v2
3235
with:
3336
php-version: 7.1
3437
- name: Cache module
35-
uses: actions/cache@v2
38+
uses: actions/cache@v4
3639
with:
3740
path: ~/.composer/cache/
3841
key: composer-cache

.github/workflows/tests.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Run tests
22

3+
permissions:
4+
contents: read
5+
36
on: [push]
47

58
jobs:
@@ -8,22 +11,21 @@ jobs:
811
runs-on: ${{ matrix.os }}
912
strategy:
1013
matrix:
11-
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]
14+
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
1215
os: [ubuntu-latest]
1316
experimental: [false]
1417
composer-options: ['']
1518
include:
1619
- { php-version: 'nightly', composer-options: '--ignore-platform-req=php', experimental: true, os: ubuntu-latest }
1720
steps:
18-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
1922
- name: Use php ${{ matrix.php-version }}
2023
uses: shivammathur/setup-php@v2
2124
with:
2225
php-version: ${{ matrix.php-version }}
23-
coverage: xdebug
24-
tools: composer:v2
26+
coverage: pcov
2527
- name: Cache module
26-
uses: actions/cache@v2
28+
uses: actions/cache@v4
2729
with:
2830
path: ~/.composer/cache/
2931
key: composer-cache
@@ -32,4 +34,6 @@ jobs:
3234
- name: Run php tests
3335
run: composer run test
3436
- name: Send coverage
35-
uses: codecov/codecov-action@v1
37+
uses: codecov/codecov-action@v4
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)