Skip to content

Pull request #158: Merge 21f7cad90976e7747a019b41b57ee2c80e7939da int… #34

Pull request #158: Merge 21f7cad90976e7747a019b41b57ee2c80e7939da int…

Pull request #158: Merge 21f7cad90976e7747a019b41b57ee2c80e7939da int… #34

Workflow file for this run

name: OpenKit JS Build
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 19.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: 'yarn'
- run: yarn install
- run: npm run build --if-present
- run: npx jest --forceExit
coverage:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- run: yarn install
- run: npx jest --coverage --forceExit
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: './build/coverage/lcov.info'
github-token: ${{ secrets.GITHUB_TOKEN }}