Skip to content

Commit 26fd2f6

Browse files
authored
Create JavascriptAlgoCL.yml
1 parent 26fc815 commit 26fd2f6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Javascript Algorithm CI
5+
6+
on: [push, pull_request]
7+
8+
permissions: write-all
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js
18+
uses: actions/setup-node@v2
19+
20+
- name: npm install, build, and test
21+
run: |
22+
npm install doctest
23+
npm install standard --save-dev
24+
npx doctest **/*.js || true # TODO: Add all doctests
25+
npx standard
26+
npm ci
27+
npm run build --if-present
28+
29+
env:
30+
CI: true
31+
32+
- name: Run the tests
33+
run: npm test -- --coverage
34+
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)