Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: github_actions

on:
push:
branches: [ main, master ]
paths-ignore:
- '**/*.md'
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- '**/*.md'
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
node-ci:
strategy:
fail-fast: false
matrix:
node-version: [18, 20]
uses: cursorvers/cursor-macbookpro2019-workflows/.github/workflows/node-ci-reusable.yml@v1.1
with:
node-version: ${{ matrix.node-version }}
working-directory: '.'
run-lint: true
run-test: true
run-build: true
34 changes: 0 additions & 34 deletions eslint.config.js

This file was deleted.

17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import js from '@eslint/js';
import pluginSecurity from 'eslint-plugin-security';
import globals from 'globals';

export default [
js.configs.recommended,
pluginSecurity.configs.recommended,
{
files: ['**/*.js', '**/*.mjs', 'tests/**/*.mjs'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: { ...globals.node }
},
rules: { 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }] }
}
];
13 changes: 13 additions & 0 deletions tests/smoke.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { dirname } from 'node:path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

test('package.json exists and has name', () => {
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url)));
assert.equal(typeof pkg.name, 'string');
});