Skip to content

Commit

Permalink
[chore] add setting up Xvfb for vscode-test to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
glassk committed Apr 25, 2024
1 parent 403cdbb commit dae7b2c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit dae7b2c

Please sign in to comment.