diff --git a/.github/workflows/postman.yml b/.github/workflows/postman.yml new file mode 100644 index 000000000..820bb0159 --- /dev/null +++ b/.github/workflows/postman.yml @@ -0,0 +1,25 @@ +name: API Contract (Postman) + +# Boots a full Fleetbase stack (published image) and runs the FleetOps Postman +# collection against the live API. Delegates to the reusable workflow in +# fleetbase/fleetbase. Requires org secrets POSTMAN_API_KEY + _GITHUB_AUTH_TOKEN +# (inherited); no-ops until POSTMAN_API_KEY is set. +# TODO: change @dev-v0.7.53 to @main once that branch is merged. + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + contract: + uses: fleetbase/fleetbase/.github/workflows/api-contract.yml@dev-v0.7.53 + with: + collections: "Fleetbase API" + build-from-source: false + secrets: inherit diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 964eeb394..a47be23db 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -46,9 +46,24 @@ jobs: - name: Generate Coverage Baseline run: XDEBUG_MODE=coverage composer coverage:baseline + # Asserts the gate against the report the step above just wrote. + # `composer coverage:check` would regenerate it first, which means running + # the whole suite under coverage a second time. + - name: Enforce Coverage Gate + run: php scripts/coverage-summary.php coverage/clover.xml --fail-under=100 + - name: Upload Coverage Baseline uses: actions/upload-artifact@v4 with: name: fleetops-coverage-clover path: coverage/clover.xml if-no-files-found: error + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage/clover.xml + disable_search: true + flags: backend + fail_ci_if_error: false diff --git a/README.md b/README.md index ec787e208..f0d631c05 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ License: AGPL-3.0-or-later + + Coverage + NPM package diff --git a/addon/components/customer/form.hbs b/addon/components/customer/form.hbs index 67c0679b8..4dd63de78 100644 --- a/addon/components/customer/form.hbs +++ b/addon/components/customer/form.hbs @@ -99,55 +99,6 @@ - -
- - -
-
- {{this.user.name}} -
-
-
{{model.name}}
-
- - {{n-a model.email}} -
-
- - {{n-a model.phone}} -
-
-
-
-
- {{#if @resource.user}} -
- - - - - - - - - -
- {{/if}} -
-
- diff --git a/addon/components/entity/card.hbs b/addon/components/entity/card.hbs index ccd63de5a..9defaf2d1 100644 --- a/addon/components/entity/card.hbs +++ b/addon/components/entity/card.hbs @@ -15,6 +15,7 @@
{{#if (has-block "footer")}} diff --git a/addon/components/modals/order-label.hbs b/addon/components/modals/order-label.hbs index 68126b76d..94f53f815 100644 --- a/addon/components/modals/order-label.hbs +++ b/addon/components/modals/order-label.hbs @@ -1,6 +1,6 @@