File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : CI
1+ name : CI/CD
22on :
33 - push
44 - pull_request
5+ env :
6+ FORCE_COLOR : 3
57jobs :
6- CI :
7- name : Build & Test
8+ ci-cd :
9+ name : CI/CD
810 runs-on : ubuntu-latest
911 steps :
10- - name : Fetch Repository
12+ - name : Cancel Previous Runs
13+ uses : styfle/cancel-workflow-action@0.9.1
14+ with :
15+ access_token : ${{ github.token }}
16+
17+ - name : Clone Repository
1118 uses : actions/checkout@v2
1219 with :
13- # Ensures we fetch all tags.
20+ # Ensures all tags are fetched so that if any release management tasks
21+ # are performed, they will be able to introspect the project's commits
22+ # and tags.
1423 fetch-depth : 0
24+
1525 - name : Set Up Node
16- uses : actions/setup-node@v1
26+ uses : actions/setup-node@v2
1727 with :
1828 node-version : 14
29+ cache : npm
30+
1931 - name : Install Dependencies
20- run : npm ci --ignore-scripts
32+ run : |
33+ npm install --global npm@7
34+ npm ci --ignore-scripts
35+
2136 - name : Build Project
22- run : npx nps build
23- - name : Run Tests
24- run : npx nps test.coverage
37+ run : npx nr build
38+
39+ - name : Run Unit Tests
40+ run : npx nr test.passWithNoTests
41+
2542 - name : Upload Coverage Report
2643 run : bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 1111
1212## Install
1313
14- This package is available as a CLI and as a Node API. If only using the Node
15- API, you should install it locally in your project:
14+ This package is available as a CLI and as a Node API. If only using the Node API, you should install it
15+ locally in your project:
1616
1717```
1818npm i @darkobits/node-versions
Original file line number Diff line number Diff line change 1- module . exports = require ( '@darkobits/ts' ) . jest ( {
1+ import { jest } from '@darkobits/ts' ;
2+
3+ export default jest ( {
24 coveragePathIgnorePatterns : [
35 '<rootDir>/src/bin'
46 ] ,
Original file line number Diff line number Diff line change 1+ import { nr } from '@darkobits/ts' ;
2+
3+ export default nr ( ) ;
You can’t perform that action at this time.
0 commit comments