Skip to content

Commit 426d088

Browse files
committed
ci: Added GitHub Action for 8.3
1 parent b2b2b29 commit 426d088

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/php83.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build PHP 8.3
2+
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
pull_request:
7+
branches: [ main, dev ]
8+
env:
9+
OPERATING_SYS: ubuntu-latest
10+
PHP_VERSION: 8.3
11+
jobs:
12+
13+
test:
14+
name: Run Tests
15+
uses: WebFiori/workflows/.github/workflows/test-php.yaml@main
16+
with:
17+
php-version: '8.3'
18+
phpunit-config: 'tests/phpunit10.xml'
19+
20+
21+
code-coverage:
22+
name: Coverage
23+
needs: test
24+
uses: WebFiori/workflows/.github/workflows/coverage-codecov.yaml@main
25+
with:
26+
php-version: '8.3'
27+
coverage-file: 'php-8.3-coverage.xml'
28+
secrets:
29+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
30+
31+
code-quality:
32+
name: Code Quality
33+
needs: test
34+
uses: WebFiori/workflows/.github/workflows/quality-sonarcloud.yaml@main
35+
with:
36+
coverage-file: 'php-8.3-coverage.xml'
37+
secrets:
38+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39+
40+
release-prod:
41+
name: Prepare Production Release Branch / Publish Release
42+
needs: [code-coverage, code-quality]
43+
uses: WebFiori/workflows/.github/workflows/release-php.yaml@main
44+
with:
45+
branch: 'main'

release-please-config.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"include-v-in-tag":true,
4+
"tag-separator": "-",
5+
"changelog-path": "CHANGELOG.md",
6+
"changelog-sections": [
7+
{ "type": "feat", "section": "Features" },
8+
{ "type": "feature", "section": "Features" },
9+
{ "type": "fix", "section": "Bug Fixes" },
10+
{ "type": "perf", "section": "Performance Improvements" },
11+
{ "type": "revert", "section": "Reverts" },
12+
{ "type": "docs", "section": "Documentation" },
13+
{ "type": "style", "section": "Styles" },
14+
{ "type": "chore", "section": "Miscellaneous Chores" },
15+
{ "type": "refactor", "section": "Code Refactoring" },
16+
{ "type": "test", "section": "Testing" },
17+
{ "type": "build", "section": "Build System" },
18+
{ "type": "ci", "section": "Continuous Integration" },
19+
{ "type": "ui", "section": "User Interface" },
20+
{ "type": "database", "section": "Database Changes" },
21+
{ "type": "email", "section": "Email Notifications Changes" }
22+
]
23+
}

0 commit comments

Comments
 (0)