-
Notifications
You must be signed in to change notification settings - Fork 37
45 lines (42 loc) · 1009 Bytes
/
test.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
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call: ~
permissions:
contents: read
jobs:
sanity-checks:
runs-on: ubuntu-latest
steps:
- uses: elastic/oblt-actions/pre-commit@v1
test:
strategy:
fail-fast: false
matrix:
php-image:
- 8.1-alpine
- 8.2-alpine
runs-on: ubuntu-latest
container: php:${{ matrix.php-image }}
steps:
- uses: actions/checkout@v4
- name: Append PATH
run: echo "${GITHUB_WORKSPACE}" >> $GITHUB_PATH
- name: Install composer
run: .ci/scripts/install-composer.sh
- name: Install dependencies
run: composer --no-progress install
- name: Run tests
env:
VERSION: ${{ matrix.php-image }}
run: composer test
- if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.php-image }}
path: junit-*.xml