Publishing beta package #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Framework | |
on: | |
pull_request: | |
push: | |
branches: | |
- "**" | |
- "!develop" | |
- "!master" | |
tags-ignore: | |
- "**" | |
jobs: | |
build-framework-nodejs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: nodejs/package-lock.json | |
- run: npm i -g typescript ts-node | |
working-directory: ./nodejs | |
- run: tsc -v ; ts-node -v | |
working-directory: ./nodejs | |
- run: npm ci | |
working-directory: ./nodejs | |
- run: npm run build | |
working-directory: ./nodejs | |
- run: npm run test | |
working-directory: ./nodejs | |
- name: Test Report ${{ matrix.node-version }} | |
uses: dorny/[email protected] | |
with: | |
name: Tests | |
path: nodejs/junit.json | |
reporter: mocha-json | |
- name: Upload coverage reports to Codecov | |
if: contains(matrix.node-version, '18.x') | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: nodejs/coverage | |
- name: cleanup | |
if: always() | |
run: rm -f ~/.npmrc ; rm -f ./.npmrc; | |
docs_build_: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: documentation/package-lock.json | |
- run: npm ci | |
working-directory: documentation/ | |
- run: npm run build | |
working-directory: documentation/ |