Skip to content

Commit 77eb270

Browse files
authored
Merge pull request #45 from Ardenexal/feat/serializer-fixes
Feat/serializer fixes
2 parents a217b0f + 98ab8b9 commit 77eb270

1,534 files changed

Lines changed: 17277 additions & 20425 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 148 additions & 148 deletions
Original file line numberDiff line numberDiff line change
@@ -1,155 +1,155 @@
11
name: Main Branch
22

33
on:
4-
push:
5-
branches: [ main ]
4+
push:
5+
branches: [ main ]
66

77
permissions:
8-
contents: read
8+
contents: read
99

1010
jobs:
11-
quality-gate:
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- uses: actions/checkout@v4
16-
17-
- name: Setup PHP
18-
uses: shivammathur/setup-php@v2
19-
with:
20-
php-version: '8.3'
21-
extensions: ctype, iconv, zip
22-
coverage: xdebug
23-
24-
- name: Cache Composer packages
25-
id: composer-cache
26-
uses: actions/cache@v4
27-
with:
28-
path: vendor
29-
key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.lock') }}
30-
restore-keys: |
31-
${{ runner.os }}-php-8.3-
32-
33-
- name: Install dependencies
34-
run: composer install --prefer-dist --no-progress --no-suggest
35-
36-
- name: Run linting (Pint) - All Components
37-
run: composer run lint
38-
39-
- name: Run PHPStan static analysis - All Components
40-
run: composer run phpstan
41-
42-
- name: Run PHPUnit tests with coverage
43-
run: composer run test-coverage
44-
45-
- name: Upload coverage reports to Codecov
46-
uses: codecov/codecov-action@v4
47-
with:
48-
file: ./coverage/clover.xml
49-
fail_ci_if_error: false
50-
env:
51-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
52-
53-
- name: Run security audit
54-
run: composer audit
55-
56-
- name: Verify no uncommitted changes
57-
run: |
58-
if [ -n "$(git status --porcelain)" ]; then
59-
echo "Uncommitted changes detected after running quality checks"
60-
git status
61-
exit 1
62-
fi
63-
64-
component-tests:
65-
runs-on: ubuntu-latest
66-
needs: quality-gate
67-
strategy:
68-
matrix:
69-
component: [bundle, codegen, serialization]
70-
71-
steps:
72-
- uses: actions/checkout@v4
73-
74-
- name: Setup PHP
75-
uses: shivammathur/setup-php@v2
76-
with:
77-
php-version: '8.3'
78-
extensions: ctype, iconv, zip
79-
80-
- name: Install dependencies
81-
run: composer install --prefer-dist --no-progress --no-suggest
82-
83-
- name: Run component-specific linting
84-
run: composer run lint:${{ matrix.component }}
85-
86-
- name: Run component-specific PHPStan
87-
run: composer run phpstan:${{ matrix.component }}
88-
89-
- name: Run component-specific tests
90-
run: composer run test:${{ matrix.component }}
91-
92-
integration-test:
93-
runs-on: ubuntu-latest
94-
needs: [quality-gate, component-tests]
95-
96-
steps:
97-
- uses: actions/checkout@v4
98-
99-
- name: Setup PHP
100-
uses: shivammathur/setup-php@v2
101-
with:
102-
php-version: '8.3'
103-
extensions: ctype, iconv, zip
104-
105-
- name: Install dependencies
106-
run: composer install --prefer-dist --no-progress --no-suggest
107-
108-
- name: Install demo dependencies
109-
run: composer install --working-dir=demo --prefer-dist --no-progress
110-
111-
- name: Run integration tests
112-
run: composer run test-integration
113-
114-
- name: Run FHIR-specific tests
115-
run: composer run test-fhir
116-
117-
- name: Test FHIR model generation
118-
run: |
119-
# Test that the generate command works
120-
php demo/bin/console list | grep fhir:generate
121-
echo "FHIR generation command is available"
122-
123-
- name: Test Symfony Flex recipe
124-
run: composer run test-recipe
125-
126-
- name: Validate recipe configuration
127-
run: composer run validate-recipe
128-
129-
cross-version-test:
130-
runs-on: ubuntu-latest
131-
needs: quality-gate
132-
strategy:
133-
matrix:
134-
php-version: ['8.3', '8.4']
135-
symfony-version: ['6.4.*', '7.4.*']
136-
137-
steps:
138-
- uses: actions/checkout@v4
139-
140-
- name: Setup PHP ${{ matrix.php-version }}
141-
uses: shivammathur/setup-php@v2
142-
with:
143-
php-version: ${{ matrix.php-version }}
144-
extensions: ctype, iconv, zip
145-
146-
- name: Install dependencies with Symfony ${{ matrix.symfony-version }}
147-
run: |
148-
composer require --dev symfony/framework-bundle:${{ matrix.symfony-version }} --no-update
149-
composer install --prefer-dist --no-progress --no-suggest
150-
151-
- name: Run component tests
152-
run: composer run test:components
153-
154-
- name: Test bundle integration
155-
run: composer run test:bundle
11+
quality-gate:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.3'
21+
extensions: ctype, iconv, zip
22+
coverage: xdebug
23+
24+
- name: Cache Composer packages
25+
id: composer-cache
26+
uses: actions/cache@v4
27+
with:
28+
path: vendor
29+
key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-php-8.3-
32+
33+
- name: Install dependencies
34+
run: composer install --prefer-dist --no-progress --no-suggest
35+
36+
- name: Run linting (Pint) - All Components
37+
run: composer run lint
38+
39+
- name: Run PHPStan static analysis - All Components
40+
run: composer run phpstan
41+
42+
- name: Run PHPUnit tests with coverage
43+
run: composer run test-coverage
44+
45+
- name: Upload coverage reports to Codecov
46+
uses: codecov/codecov-action@v5
47+
with:
48+
files: ./coverage/clover.xml
49+
fail_ci_if_error: false
50+
env:
51+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
52+
53+
- name: Run security audit
54+
run: composer audit
55+
56+
- name: Verify no uncommitted changes
57+
run: |
58+
if [ -n "$(git status --porcelain)" ]; then
59+
echo "Uncommitted changes detected after running quality checks"
60+
git status
61+
exit 1
62+
fi
63+
64+
component-tests:
65+
runs-on: ubuntu-latest
66+
needs: quality-gate
67+
strategy:
68+
matrix:
69+
component: [ bundle, codegen, serialization, fhir-path ]
70+
71+
steps:
72+
- uses: actions/checkout@v4
73+
74+
- name: Setup PHP
75+
uses: shivammathur/setup-php@v2
76+
with:
77+
php-version: '8.3'
78+
extensions: ctype, iconv, zip
79+
80+
- name: Install dependencies
81+
run: composer install --prefer-dist --no-progress --no-suggest
82+
83+
- name: Run component-specific linting
84+
run: composer run lint:${{ matrix.component }}
85+
86+
- name: Run component-specific PHPStan
87+
run: composer run phpstan:${{ matrix.component }}
88+
89+
- name: Run component-specific tests
90+
run: composer run test:${{ matrix.component }}
91+
92+
integration-test:
93+
runs-on: ubuntu-latest
94+
needs: [ quality-gate, component-tests ]
95+
96+
steps:
97+
- uses: actions/checkout@v4
98+
99+
- name: Setup PHP
100+
uses: shivammathur/setup-php@v2
101+
with:
102+
php-version: '8.3'
103+
extensions: ctype, iconv, zip
104+
105+
- name: Install dependencies
106+
run: composer install --prefer-dist --no-progress --no-suggest
107+
108+
- name: Install demo dependencies
109+
run: composer install --working-dir=demo --prefer-dist --no-progress
110+
111+
- name: Run integration tests
112+
run: composer run test-integration
113+
114+
- name: Run FHIRPath specification tests
115+
run: composer run test-fhirpath-spec
116+
117+
- name: Test FHIR model generation
118+
run: |
119+
# Test that the generate command works
120+
php demo/bin/console list | grep fhir:generate
121+
echo "FHIR generation command is available"
122+
123+
- name: Test Symfony Flex recipe
124+
run: composer run test-recipe
125+
126+
- name: Validate recipe configuration
127+
run: composer run validate-recipe
128+
129+
cross-version-test:
130+
runs-on: ubuntu-latest
131+
needs: quality-gate
132+
strategy:
133+
matrix:
134+
php-version: [ '8.3', '8.4' ]
135+
symfony-version: [ '6.4.*', '7.4.*' ]
136+
137+
steps:
138+
- uses: actions/checkout@v4
139+
140+
- name: Setup PHP ${{ matrix.php-version }}
141+
uses: shivammathur/setup-php@v2
142+
with:
143+
php-version: ${{ matrix.php-version }}
144+
extensions: ctype, iconv, zip
145+
146+
- name: Install dependencies with Symfony ${{ matrix.symfony-version }}
147+
run: |
148+
composer require --dev symfony/framework-bundle:${{ matrix.symfony-version }} --no-update
149+
composer install --prefer-dist --no-progress --no-suggest
150+
151+
- name: Run component tests
152+
run: composer run test:components
153+
154+
- name: Test bundle integration
155+
run: composer run test:bundle

0 commit comments

Comments
 (0)