diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09e7ce8..9b8abe0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,8 @@ name: CI on: push: - pull_request: - + branches: + - develop jobs: build-test: runs-on: ubuntu-latest @@ -17,15 +17,15 @@ jobs: with: node-version: 20 cache: npm - - name: Install dependencies run: npm ci - + - name: Install xvfb + run: sudo apt-get update && sudo apt-get install -y xvfb - name: Lint run: npm run lint - - name: Compile TypeScript - run: npm run build - - - name: Run tests - run: npm test \ No newline at end of file + run: npm run compile + - name: Run unit tests + run: npm run test:unit + - name: Run extension tests + run: xvfb-run -a npm test diff --git a/README.md b/README.md index d143c83..c2d2622 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ -# gops (Git Ops - Visual Git Toolkit) +# Gops (Git Ops - Visual Git Toolkit) -Git Operations - Visual Git Toolkit +Git Operations - Visual Git Toolkit for VS Code + +## Build Status +[![CI](https://github.com/thedev-codeman/gops/actions/workflows/ci.yml/badge.svg)](https://github.com/thedev-codeman/gops/actions/workflows/ci.yml) ## Features @@ -20,6 +23,7 @@ Git Operations - Visual Git Toolkit - Local Changes - Tags + ## Requirements If you have any requirements or dependencies, add a section describing those and how to install and configure them. diff --git a/src/gopstree/TreeDataProvider.ts b/src/gopstree/TreeDataProvider.ts index fd485a4..20b67f5 100644 --- a/src/gopstree/TreeDataProvider.ts +++ b/src/gopstree/TreeDataProvider.ts @@ -7,6 +7,7 @@ import { LocalBranchNode } from "./nodes/LocalBranchNode"; import { RemoteBranchNode } from "./nodes/RemoteBranchNode"; import { Constants } from "../constants/Constants"; import { GitTreeNode } from "./types"; +import { Notifications } from "../notifications/Notifications"; export class TreeDataProvider implements vscode.TreeDataProvider { private _onDidChangeTreeData = new vscode.EventEmitter< @@ -98,5 +99,10 @@ export class TreeDataProvider implements vscode.TreeDataProvider { refresh(node?: GitTreeNode): void { this._onDidChangeTreeData.fire(node); + + //Show notification for parent node refresh + if (node === undefined) { + Notifications.info("Git Ops tree view refreshed"); + } } } diff --git a/tsconfig.json b/tsconfig.json index 05a7e39..9bfc5f0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,5 +12,5 @@ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ // "noUnusedParameters": true, /* Report errors on unused parameters. */ }, - "exclude": ["vitest.config.mts", "node_modules", "dist"] + "exclude": ["vitest.config.mts", "node_modules", "dist", "test", "**/*.test.ts"] }