diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9cd2ee..95ea8ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,25 +10,25 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" - - name: Install Yarn - run: npm install -g yarn + - name: Install Yarn + run: npm install -g yarn - - name: Install dependencies - run: yarn install + - name: Install dependencies + run: yarn install - - name: Run lint - run: yarn lint + - name: Run lint + run: yarn lint - - name: Compile the project - run: yarn compile + - name: Compile the project + run: yarn compile - - name: Run tests - run: yarn test + - name: Set up Xvfb and Run vscode-test + run: xvfb-run -a yarn test:vscode diff --git a/package.json b/package.json index e1a5f43..7d01114 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "watch": "tsc -watch -p ./", "pretest": "yarn run compile && yarn run lint", "lint": "eslint src --ext ts", - "test": "vscode-test", + "test:vscode": "vscode-test", "lint-staged": "lint-staged", "prepare": "husky" },