Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
run harlight tests on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
elg0nz committed Jun 18, 2024
1 parent 9779d03 commit ab34fb3
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Run Vitest

on:
push:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build artifacts
run: pnpm build
run: pnpm test
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run Vitest

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read

jobs:
build_extension:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run tests
run: pnpm --prefix packages/harlight exec vitest run
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"private": true,
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"navigate": "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --remote-debugging-port=9222 --no-sandbox --incognito",
"capture": "pnpm exec node ./apps/capturer/index.mjs"
"dev": "turbo dev"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
Expand Down
23 changes: 9 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab34fb3

Please sign in to comment.