Skip to content

Add test setup file with keytar mock #16

Add test setup file with keytar mock

Add test setup file with keytar mock #16

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8.15.4
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm run lint
- name: Check formatting
run: pnpm run format:check
# Type checking is handled by the test runner
# - name: Type check
- name: Run tests
run: CI=true pnpm run test