feat(core): initial release of financial calculation package with decimal precision
Some checks failed
CI Pipeline (nottags) / security (push) Successful in 17s
CI Pipeline (tags) / security (push) Successful in 17s
CI Pipeline (nottags) / test (push) Failing after 52s
CI Pipeline (tags) / test (push) Failing after 50s
CI Pipeline (tags) / release (push) Has been skipped
CI Pipeline (tags) / metadata (push) Has been skipped

This commit is contained in:
2025-07-29 09:20:06 +00:00
commit d63339cb71
22 changed files with 12531 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
name: "CI Pipeline (nottags)"
on:
push:
branches:
- "**"
tags-ignore:
- "**"
jobs:
security:
runs-on: ubuntu-latest
continue-on-error: true
container:
image: code.foss.global/host.today/ht-docker-node:npmci
steps:
- uses: actions/checkout@v3
- name: Set up npmci
run: npmci node install stable
- name: Prepare project
run: npmci npm prepare
- name: Audit production dependencies
run: npmci command npm audit --audit-level=high --only=prod
continue-on-error: true
- name: Audit development dependencies
run: npmci command npm audit --audit-level=high --only=dev
continue-on-error: true
test:
needs: security
runs-on: ubuntu-latest
container:
image: code.foss.global/host.today/ht-docker-node:npmci
steps:
- uses: actions/checkout@v3
- name: Set up npmci
run: npmci node install stable
- name: Prepare project
run: npmci npm prepare
- name: Install dependencies
run: npmci npm install
- name: Run tests
run: npmci npm test
- name: Build project
run: npmci npm build
- name: Build documentation
run: npmci npm buildDocs

View File

@@ -0,0 +1,123 @@
name: "CI Pipeline (tags)"
on:
push:
tags:
- "*"
env:
NPMCI_TOKEN_NPM: ${{ secrets.NPMCI_TOKEN_NPM }}
NPMCI_TOKEN_NPM2: ${{ secrets.NPMCI_TOKEN_NPM2 }}
NPMCI_GIT_GITHUBTOKEN: ${{ secrets.NPMCI_GIT_GITHUBTOKEN }}
NPMCI_URL_CLOUDFLARE: ${{ secrets.NPMCI_URL_CLOUDFLARE }}
jobs:
security:
runs-on: ubuntu-latest
continue-on-error: true
container:
image: code.foss.global/host.today/ht-docker-node:npmci
steps:
- uses: actions/checkout@v3
- name: Set up npmci
run: npmci node install stable
- name: Prepare project
run: npmci npm prepare
- name: Audit production dependencies
run: npmci command npm audit --audit-level=high --only=prod
continue-on-error: true
- name: Audit development dependencies
run: npmci command npm audit --audit-level=high --only=dev
continue-on-error: true
test:
needs: security
runs-on: ubuntu-latest
container:
image: code.foss.global/host.today/ht-docker-node:npmci
steps:
- uses: actions/checkout@v3
- name: Set up npmci
run: npmci node install stable
- name: Prepare project
run: npmci npm prepare
- name: Install dependencies
run: npmci npm install
- name: Run tests
run: npmci npm test
- name: Build project
run: npmci npm build
- name: Build documentation
run: npmci npm buildDocs
release:
needs: test
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: code.foss.global/host.today/ht-docker-node:npmci
steps:
- uses: actions/checkout@v3
- name: Set up npmci
run: npmci node install stable
- name: Prepare project
run: npmci npm prepare
- name: Install dependencies
run: npmci npm install
- name: Build project
run: npmci npm build
- name: Publish to npm
run: npmci npm publish
metadata:
needs: test
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: code.foss.global/host.today/ht-docker-node:npmci
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Set up npmci
run: npmci node install stable
- name: Prepare project
run: npmci npm prepare
- name: Install dependencies
run: npmci npm install
- name: Build project
run: npmci npm build
- name: Generate documentation
run: npmci npm buildDocs
- name: Generate metadata
run: npmci command npm pack --dry-run --json
- name: Trigger further builds
run: npmci trigger
- name: Build and deploy docs
run: npmci node install stable && npmci npm prepare && npmci npm install && npmci npm buildDocs