-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (42 loc) · 1.33 KB
/
validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "validate"
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
permissions:
contents: read
jobs:
get-php-info:
name: "Get PHP Info"
runs-on: ubuntu-latest
outputs:
extensions: ${{ steps.php-info-matrix.outputs.extensions }}
versions: ${{ steps.php-info-matrix.outputs.version }}
lowest-version: ${{ steps.php-info-matrix.outputs.lowest }}
steps:
- uses: actions/checkout@v4
- id: php-info-matrix
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
lint:
needs:
- get-php-info
name: "Lint"
uses: "./.github/workflows/shared-lint.yml"
with:
operating-system: ubuntu-latest
php-version: ${{ needs.get-php-info.outputs.lowest-version }}
php-extensions: ${{ needs.get-php-info.outputs.extensions }}
test:
needs:
- get-php-info
- lint
name: "Test"
uses: "./.github/workflows/shared-test.yml"
with:
operating-systems: '["ubuntu-latest", "macos-latest", "windows-latest"]'
php-versions: ${{ needs.get-php-info.outputs.versions }}
php-extensions: ${{ needs.get-php-info.outputs.extensions }}
use-secure-environment: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
secrets:
geonames-username: ${{ secrets.GEONAMES_USERNAME }}