mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 15:36:53 +02:00
Merge branch 'main' into claude/voice-notes-replies-9TMod
This commit is contained in:
62
.github/workflows/qa.yml
vendored
Normal file
62
.github/workflows/qa.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
name: QA
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
pull_request:
|
||||
branches: [main, master]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
run: npm run lint
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run tests
|
||||
run: npm run test:run
|
||||
@@ -10,6 +10,7 @@ vi.mock("@/services/accounts", () => ({
|
||||
default: {
|
||||
active: {
|
||||
signer: {},
|
||||
pubkey: "test-pubkey",
|
||||
},
|
||||
},
|
||||
}));
|
||||
@@ -26,7 +27,7 @@ vi.mock("@/services/spell-storage", () => ({
|
||||
|
||||
vi.mock("@/services/relay-list-cache", () => ({
|
||||
relayListCache: {
|
||||
getOutboxRelays: vi.fn().mockResolvedValue(["wss://relay.example.com"]),
|
||||
getOutboxRelays: vi.fn().mockResolvedValue([]),
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -69,6 +70,7 @@ describe("PublishSpellAction", () => {
|
||||
accountManager.active = {
|
||||
pubkey: "pubkey",
|
||||
signer: mockSigner,
|
||||
pubkey: "pubkey",
|
||||
};
|
||||
|
||||
const spell: LocalSpell = {
|
||||
|
||||
Reference in New Issue
Block a user