2019-09-26 13:25:26 +00:00
|
|
|
name: JS Tests
|
2020-10-29 17:26:15 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- "dependabot/**"
|
|
|
|
pull_request:
|
2021-12-02 21:02:11 +00:00
|
|
|
workflow_dispatch:
|
2020-10-29 17:26:15 +00:00
|
|
|
|
2019-10-08 05:47:40 +00:00
|
|
|
env:
|
2020-11-23 19:32:25 +00:00
|
|
|
FORCE_COLOR: 2
|
2021-12-10 14:40:32 +00:00
|
|
|
NODE: 16
|
2019-08-08 16:40:26 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
run:
|
2021-12-10 14:40:32 +00:00
|
|
|
name: JS Tests
|
2019-08-08 16:40:26 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2019-08-23 23:32:29 +00:00
|
|
|
- name: Clone repository
|
2022-03-02 14:51:46 +00:00
|
|
|
uses: actions/checkout@v3
|
2019-08-09 15:28:41 +00:00
|
|
|
|
2020-10-29 17:26:15 +00:00
|
|
|
- name: Set up Node.js
|
2022-03-01 13:19:34 +00:00
|
|
|
uses: actions/setup-node@v3
|
2019-08-09 15:28:41 +00:00
|
|
|
with:
|
2021-12-10 14:40:32 +00:00
|
|
|
node-version: ${{ env.NODE }}
|
2021-07-19 15:38:49 +00:00
|
|
|
cache: npm
|
2019-12-13 15:12:03 +00:00
|
|
|
|
2019-08-09 15:28:41 +00:00
|
|
|
- name: Install npm dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
2019-09-26 13:25:26 +00:00
|
|
|
- name: Run dist
|
|
|
|
run: npm run js
|
2019-08-09 15:28:41 +00:00
|
|
|
|
2019-09-26 13:25:26 +00:00
|
|
|
- name: Run JS tests
|
|
|
|
run: npm run js-test
|
2019-08-09 15:28:41 +00:00
|
|
|
|
|
|
|
- name: Run Coveralls
|
2021-07-14 05:29:28 +00:00
|
|
|
uses: coverallsapp/github-action@1.1.3
|
2019-11-18 19:03:43 +00:00
|
|
|
with:
|
|
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
path-to-lcov: "./js/coverage/lcov.info"
|