Skip to content

Commit

Permalink
Merge branch 'nodecfdi:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
CombatantFawn authored Aug 16, 2024
2 parents 6612a79 + d12b5ad commit 99e7228
Show file tree
Hide file tree
Showing 149 changed files with 5,741 additions and 1,391 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 16 * * 0' # sunday 16:00

jobs:
quality_code:
uses: nodecfdi/.github/.github/workflows/quality_code.yml@main

tests:
uses: nodecfdi/.github/.github/workflows/tests.yml@main
56 changes: 56 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: sonarcloud
on:
push:
branches:
- main

jobs:
tests-coverage:
uses: nodecfdi/.github/.github/workflows/test_coverage.yml@main

sonarcloud-secrets:
name: SonarCloud check secrets are present
runs-on: ubuntu-latest
outputs:
github: ${{ steps.check-secrets.outputs.github }}
sonar: ${{ steps.check-secrets.outputs.sonar }}
steps:
- name: Check secrets are present
id: check-secrets
run: |
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
echo "github=yes" >> $GITHUB_OUTPUT
else
echo "github=no" >> $GITHUB_OUTPUT
echo "::warning ::GITHUB_TOKEN non set"
fi
if [ -n "${{ secrets.SONAR_TOKEN }}" ]; then
echo "sonar=yes" >> $GITHUB_OUTPUT
else
echo "sonar=no" >> $GITHUB_OUTPUT
echo "::warning ::SONAR_TOKEN non set"
fi
sonarcloud:
name: SonarCloud Scan and Report
needs: ['tests-coverage', 'sonarcloud-secrets']
if: ${{ needs.sonarcloud-secrets.outputs.github == 'yes' && needs.sonarcloud-secrets.outputs.sonar == 'yes' }}
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Unshallow clone to provide blame information
run: git fetch --unshallow

- name: Obtain code coverage
uses: actions/download-artifact@v4
with:
name: code-coverage
path: coverage

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
## [2.1.0-0](https://github.com/nodecfdi/cfdi-to-pdf/compare/v2.0.2-1...v2.1.0-0) (2024-08-14)

### Bug Fixes

* :bug: try resolve problem with bundler fonts and generate same output ([286a0c6](https://github.com/nodecfdi/cfdi-to-pdf/commit/286a0c640caa5ea4a0e62ef407ad5139d678d396))
## [2.0.2-1](https://github.com/nodecfdi/cfdi-to-pdf/compare/v2.0.2-0...v2.0.2-1) (2024-08-14)

### Bug Fixes

* :bug: try resolve problem with bundler pdfmake ([c8b185b](https://github.com/nodecfdi/cfdi-to-pdf/commit/c8b185bf5fa5f87289c0b06eab1083034328e0c5))
## [2.0.2-0](https://github.com/nodecfdi/cfdi-to-pdf/compare/v2.0.1...v2.0.2-0) (2024-08-14)

### Bug Fixes

* :bug: resolve problem with shared enums in parser ([346d58d](https://github.com/nodecfdi/cfdi-to-pdf/commit/346d58d5ad1000da9924504f553e0acf80cb0664))
* :bug: resolve problem with shared enums in parser ([bc07292](https://github.com/nodecfdi/cfdi-to-pdf/commit/bc072925d8385e20a5e89c5a596523f8c1903d38))
* :bug: try resolve problem with bundler pdf and browser ([1b04726](https://github.com/nodecfdi/cfdi-to-pdf/commit/1b04726b96122cd4aa1cf10fefca0cbe621266d7))
## [2.0.1](https://github.com/nodecfdi/cfdi-to-pdf/compare/v2.0.0...v2.0.1) (2024-08-07)

### Bug Fixes

* :bug: resolve not use override primary color style on stamp content ([a569890](https://github.com/nodecfdi/cfdi-to-pdf/commit/a56989014a7aca3714826f34c974a14eceda5b35))
## [2.0.0](https://github.com/nodecfdi/cfdi-to-pdf/compare/v2.0.0-1...v2.0.0) (2024-08-05)

### Features

* :sparkles: add better presentation for pago20 complement ([c0415e5](https://github.com/nodecfdi/cfdi-to-pdf/commit/c0415e57eed69b99858e5d6193f41008055f102c))
* :sparkles: add support to section retencion periodo ([7331f6e](https://github.com/nodecfdi/cfdi-to-pdf/commit/7331f6e603b209430ed8a812f2b65248ca09fc06))

### Bug Fixes

* :bug: resolve problem with show info of stamp in tfd version 1.0 ([15f5656](https://github.com/nodecfdi/cfdi-to-pdf/commit/15f5656b3408f4ec5c989cd1cd8757bb49741dcb))

### Performance Improvements

* :construction: header of information global has col span ([98b47ff](https://github.com/nodecfdi/cfdi-to-pdf/commit/98b47ffcb6da68035f3d2d82112da97a232a50e2))
* :recycle: better presentation of retenciones periodo section ([7b4ec9d](https://github.com/nodecfdi/cfdi-to-pdf/commit/7b4ec9d6c3767a939f86ab6122296a6e0aa142bf))
* :wrench: include export of catalog pagos tipos cadena pago ([f795585](https://github.com/nodecfdi/cfdi-to-pdf/commit/f795585dd6861ec4a53e2e6226a88fed88a61739))
## [2.0.0-1](https://github.com/nodecfdi/cfdi-to-pdf/compare/v2.0.0-0...v2.0.0-1) (2024-08-01)
## [2.0.0-0](https://github.com/nodecfdi/cfdi-to-pdf/compare/v1.6.0...v2.0.0-0) (2024-07-30)
## <small>1.1.5 (2022-06-15)</small>

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The `@nodecfdi/cfdi-to-pdf` library is copyright © [NodeCfdi](https://github.co
[node-version]: https://www.npmjs.com/package/@nodecfdi/cfdi-to-pdf
[discord]: https://discord.gg/AsqX8fkW2k
[release]: https://www.npmjs.com/package/@nodecfdi/cfdi-to-pdf
[license]: https://github.com/nodecfdi/cfdi-to-pdf/blob/main/LICENSE
[license]: https://github.com/nodecfdi/cfdi-to-pdf/blob/main/LICENSE.md
[build]: https://github.com/nodecfdi/cfdi-to-pdf/actions/workflows/build.yml?query=branch:main
[reliability]: https://sonarcloud.io/component_measures?id=nodecfdi_cfdi-to-pdf&metric=Reliability
[maintainability]: https://sonarcloud.io/component_measures?id=nodecfdi_cfdi-to-pdf&metric=Maintainability
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/classes/abstract_invoice_data.default.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/classes/builders_abstract_pdf_maker_builder.default.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/classes/builders_browser_pdf_maker_builder.default.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/classes/builders_node_pdf_maker_builder.default.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/classes/cfdi_data.default.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/classes/retenciones_data.default.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions docs/classes/templates_generic_cfdi_translator.default.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 99e7228

Please sign in to comment.