Skip to content

Updated version to v1.0.8 #46

Updated version to v1.0.8

Updated version to v1.0.8 #46

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn test
- name: Run coverage
run: yarn coverage
- name: Run lint
run: yarn lint
- name: Upload coverage reports
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Install dependencies
run: yarn install
- name: Build library
run: yarn build:lib
- name: Build documentation
run: yarn docs:build
- name: Upload library artifacts
uses: actions/upload-artifact@v4
with:
name: lib-dist
path: dist/
- name: Upload documentation artifacts
uses: actions/upload-artifact@v4
with:
name: docs-dist
path: dist/docs/