Skip to content

Commit

Permalink
--wip--
Browse files Browse the repository at this point in the history
  • Loading branch information
QZera committed Oct 13, 2024
1 parent 2cc1fc6 commit afe78b1
Show file tree
Hide file tree
Showing 9 changed files with 3,652 additions and 17 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
ignorePatterns: [
'static',
'src/webviews',
'test',

// overrides to antfu's config follow
'!.*rc.*',
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/end-to-end-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
# branches: [ main ]
push:
pull_request:
pull_request_target:

jobs:
e2e-test:
Expand Down Expand Up @@ -95,22 +96,22 @@ jobs:
- name: Install Dependencies
working-directory: ${{ github.workspace }}/radicle-vscode-extension
run: npx npm-run-all -l verify-deps:*
- name: Compile
working-directory: ${{ github.workspace }}/radicle-vscode-extension
run: pnpm run pretest
# - name: Compile
# working-directory: ${{ github.workspace }}/radicle-vscode-extension
# run: pnpm run pretest
- name: Test E2E (Linux)
working-directory: ${{ github.workspace }}/radicle-vscode-extension
if: runner.os == 'Linux'
env:
RAD_PATH: ${{ github.workspace }}/.radicle/bin/rad
run: |
echo "The repo is at: ${{ steps.radicle-init.outputs.radicle-repo }}"
xvfb-run -a pnpm run test:e2e
xvfb-run -a pnpm wdio
- name: Test E2E (non-Linux)
working-directory: ${{ github.workspace }}/radicle-vscode-extension
if: runner.os != 'Linux'
env:
RAD_PATH: ${{ github.workspace }}/.radicle/bin/rad
run: |
echo "The repo is at: ${{ steps.radicle-init.outputs.radicle-repo }}"
pnpm run test:e2e
pnpm wdio
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ debug.log*

# git / radicle
.gitsigners

.wdio-vscode-service
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
"test:typings:extension": "tsc --noEmit",
"test:typings:webviews": "cd ./src/webviews && npm run type-check",
"test:unit": "echo \"Unit testing not yet implemented.\"",
"test:e2e": "node ./dist/test/runTest.js"
"pretest:e2e": "tsc --sourceMap --project ./",
"test:e2e": "node ./dist/test/runTest.js",
"wdio": "wdio run ./wdio.conf.ts"
},
"main": "./dist/extension.js",
"activationEvents": [
Expand Down Expand Up @@ -579,14 +581,20 @@
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
"@total-typescript/ts-reset": "^0.5.1",
"@types/javascript-time-ago": "^2.0.8",
"@types/glob": "^7.1.1",
"@types/javascript-time-ago": "^2.0.8",
"@types/lodash": "^4.17.6",
"@types/mocha": "^10.0.1",
"@types/node": "^20.11.21",
"@types/vscode": "^1.91.0",
"@vscode/test-cli": "^0.0.8",
"@vscode/test-electron": "^2.3.9",
"@wdio/cli": "^9.1.2",
"@wdio/globals": "^9.1.2",
"@wdio/local-runner": "^9.1.2",
"@wdio/mocha-framework": "^9.1.2",
"@wdio/spec-reporter": "^9.1.2",
"@wdio/types": "^9.1.2",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
Expand All @@ -598,7 +606,9 @@
"npm-run-all": "^4.1.5",
"simple-git-hooks": "^2.9.0",
"ts-xor": "^1.3.0",
"typescript": "^5.3.3"
"tsx": "^4.19.1",
"typescript": "^5.3.3",
"wdio-vscode-service": "^6.1.2"
},
"simple-git-hooks": {
"pre-commit": "npm run lint"
Expand Down
Loading

0 comments on commit afe78b1

Please sign in to comment.