feat: introduce Obsidian vault sync plugin #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Obsidian Plugin Lint | |
| # Lints + type-checks + builds the Obsidian plugin on every push/PR that | |
| # touches its sources. The official obsidian-sample-plugin template ships | |
| # its own ESLint+esbuild setup; we run that here instead of folding the | |
| # plugin into the monorepo's Biome-based code-quality.yml so the tooling | |
| # stays aligned with what `obsidianmd/eslint-plugin-obsidianmd` checks | |
| # against. | |
| on: | |
| push: | |
| branches: ["**"] | |
| paths: | |
| - "surfsense_obsidian/**" | |
| - ".github/workflows/obsidian-plugin-lint.yml" | |
| pull_request: | |
| branches: ["**"] | |
| paths: | |
| - "surfsense_obsidian/**" | |
| - ".github/workflows/obsidian-plugin-lint.yml" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: surfsense_obsidian | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| cache-dependency-path: surfsense_obsidian/package-lock.json | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run build |