Skip to content

Commit

Permalink
Update settings and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Aug 4, 2023
1 parent 179721a commit cc7750a
Show file tree
Hide file tree
Showing 18 changed files with 2,164 additions and 418 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,41 @@ jobs:
- name: Validate README.md
run: python -m nox --session validate_readme
shell: bash

ts-tests:
name: TypeScript Tests
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ${{ env.special-working-directory }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: ${{ env.special-working-directory-relative }}

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: ${{ env.special-working-directory-relative }}/package-lock.json

- name: Install Node dependencies
run: npm ci
shell: bash

- name: Compile TS tests
run: npm run pretest
shell: bash

- name: Run TS tests
uses: GabrielBB/xvfb-action@v1.6
with:
run: npm run tests
working-directory: ${{ env.special-working-directory }}
38 changes: 38 additions & 0 deletions .github/workflows/push-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,41 @@ jobs:
- name: Validate README.md
run: python -m nox --session validate_readme
shell: bash

ts-tests:
name: TypeScript Tests
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ${{ env.special-working-directory }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: ${{ env.special-working-directory-relative }}

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: ${{ env.special-working-directory-relative }}/package-lock.json

- name: Install Node dependencies
run: npm ci
shell: bash

- name: Compile TS tests
run: npm run pretest
shell: bash

- name: Run TS tests
uses: GabrielBB/xvfb-action@v1.6
with:
run: npm run tests
working-directory: ${{ env.special-working-directory }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ node_modules
bundled/libs/
**/__pycache__
**/.pytest_cache
**/.vs
**/.vs
**/.mypy_cache
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@
"order": 3
}
},
{
"name": "TS Unit Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/ts_tests/index"
],
"outFiles": ["${workspaceFolder}/out/**/*.js", "${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "tasks: watch-tests"
},
{
"name": "Python Config for test explorer (hidden)",
"type": "python",
Expand Down
4 changes: 3 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ noxfile.py
.flake8
**/requirements.txt
**/requirements.in
**/tool/_debug_server.py
**/tool/_debug_server.py
build/**
.mypy_cache/**
Loading

0 comments on commit cc7750a

Please sign in to comment.