-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (60 loc) · 1.85 KB
/
main.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Test & Release
on: [push, pull_request]
permissions:
pull-requests: write
contents: write
statuses: write
jobs:
tests:
name: Run Tests (PHP ${{ matrix.php-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}
cancel-in-progress: true
steps:
- name: Checkout Repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup Environment
uses: ./.github/actions/setup
with:
php-version: ${{ matrix.php-version }}
extensions: ${{ vars.EXTENSIONS }}
github-token: ${{ secrets.GH_TOKEN_DEALROOMBA }}
- name: Test
uses: ./.github/actions/test
with:
cc-reporter-id: ${{ secrets.CC_REPORTER_ID }}
cc-coverage-location: ${{ github.workspace }}
test-results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Test Final Results
needs: tests
steps:
- name: Checkout Repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Aggregate Test Results
uses: ./.github/actions/test-results
with:
needs: ${{ toJson(needs) }}
release:
runs-on: ubuntu-latest
needs: test-results
name: Release
if: github.ref == 'refs/heads/main'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
steps:
- name: Checkout Repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: '0'
- name: Release
uses: ./.github/actions/github-release
with:
github-token: ${{ secrets.GH_TOKEN_DEALROOMBA }}