Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Merge pull request #19 from acossta/fix/par-value-decimal-input #40

Merge pull request #19 from acossta/fix/par-value-decimal-input

Merge pull request #19 from acossta/fix/par-value-decimal-input #40

Workflow file for this run

name: CI/CD
on:
push:
branches: [main, master]
tags: ['v*']
pull_request:
branches: [main, master]
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run linting
run: yarn lint
- name: Run type checking
run: yarn type-check
- name: Run tests with coverage
run: yarn test:coverage:ci
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov.info
parallel: true
flag-name: node-${{ matrix.node-version }}
continue-on-error: true
coverage:
needs: test
runs-on: ubuntu-latest
if: always()
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
continue-on-error: true
publish:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}