Skip to content

Commit ea92f35

Browse files
authored
Merge pull request #412 from sasjs/issue-64
Improve adding and removing comments in SAS code
2 parents ebda9ef + d53af50 commit ea92f35

File tree

13 files changed

+10003
-15291
lines changed

13 files changed

+10003
-15291
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Issue
2+
3+
Link any related issue(s) in this section.
4+
5+
## Intent
6+
7+
What this PR intends to achieve.
8+
9+
## Implementation
10+
11+
What code changes have been made to achieve the intent.
12+
13+
## Checks
14+
15+
- [ ] Code is formatted correctly (`npm run lint`).
16+
- [ ] All unit tests are passing (`npm run test:unit`).
17+
- [ ] Reviewer is assigned.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean install of node dependencies, 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: SASjs VS Code Extension Run Tests on Windows
5+
6+
on:
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: windows-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [lts/hydrogen]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install Dependencies
25+
run: npm ci
26+
27+
- name: Run Unit Tests
28+
run: npm run test:unit
29+
30+
- name: Build Package
31+
run: npm run vscode:prepublish
32+
env:
33+
CI: true

.github/workflows/run-tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will do a clean install of node dependencies, 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: SASjs VS Code Extension Run Tests
5+
6+
on:
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [lts/hydrogen]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Check npm audit
25+
run: npm audit --production --audit-level=low
26+
27+
- name: Install Dependencies
28+
run: npm ci
29+
30+
- name: Check Code Style
31+
run: npm run lint
32+
33+
- name: Run Unit Tests
34+
run: npm run test:unit
35+
36+
- name: Build Package
37+
run: npm run vscode:prepublish
38+
env:
39+
CI: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
.vscode-test/
55
*.vsix
66
.DS_Store
7+
/coverage

jest.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
preset: 'ts-jest/presets/js-with-ts',
3+
resetMocks: true,
4+
restoreMocks: true,
5+
testEnvironment: 'node',
6+
transform: {
7+
'^.+\\.ts?$': 'ts-jest'
8+
},
9+
// INFO: uncomment coverageThreshold when required coverage is achieved
10+
// coverageThreshold: {
11+
// global: {
12+
// branches: 80,
13+
// functions: 80,
14+
// lines: 80,
15+
// statements: -10
16+
// }
17+
// },
18+
collectCoverageFrom: ['src/**/{!(index),}.ts'],
19+
testMatch: ['**/*spec.[j|t]s?(x)']
20+
}

0 commit comments

Comments
 (0)