-
-
Notifications
You must be signed in to change notification settings - Fork 52
57 lines (50 loc) · 1.36 KB
/
test-website.yml
File metadata and controls
57 lines (50 loc) · 1.36 KB
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
50
51
52
53
54
55
56
57
on:
pull_request:
paths:
- 'web/**'
push:
branches: [ 1.x ]
paths:
- 'web/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
website-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
php-version:
- "8.2"
operating-system:
- "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v5"
with:
fetch-depth: 0
- name: "Get Flow Version"
id: flow_version
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.x-dev
- name: "Setup PHP Environment"
uses: "./.github/actions/setup-php-env"
with:
php-version: "${{ matrix.php-version }}"
dependencies: "locked"
coverage: "pcov"
working-directory: "web/landing"
cache-key-suffix: "-website"
composer-file: "web/landing/composer.lock"
- name: "Test"
run: "composer test"
working-directory: "web/landing"
- name: "Test Build"
run: "composer build"
working-directory: "web/landing"
env:
SCHEME: https
DOMAIN: flow-php.com
FLOW_VERSION: ${{ steps.flow_version.outputs.tag }}