Skip to content

Commit f26e5e6

Browse files
authored
ci: run test and lint on pull requests (#66)
* ci: run test and lint on pull requests * test(lint): remove obsolete knip snapshot
1 parent 815cf15 commit f26e5e6

2 files changed

Lines changed: 24 additions & 23 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions: {}
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
14+
15+
jobs:
16+
scripts:
17+
if: github.repository_owner == 'bombshell-dev'
18+
uses: bombshell-dev/automation/.github/workflows/run.yml@3a8b4a38fe464b0b51d14962ae416a169517fba9 # main as of 2026-05-13
19+
with:
20+
commands: >
21+
[
22+
"test",
23+
"lint"
24+
]

‎src/commands/__snapshots__/lint.test.ts.snap‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`lint command > runKnip > detects unused exports and unused files 1`] = `
4-
[
5-
{
6-
"code": "unused-file",
7-
"column": undefined,
8-
"file": "src/unused-file.ts",
9-
"level": "warning",
10-
"line": undefined,
11-
"message": "Unused file",
12-
"tool": "knip",
13-
},
14-
{
15-
"code": "unused-export",
16-
"column": 20,
17-
"file": "src/used.ts",
18-
"level": "warning",
19-
"line": 3,
20-
"message": "Unused export 'unusedExport'",
21-
"tool": "knip",
22-
},
23-
]
24-
`;
25-
263
exports[`lint command > runKnip > reports dead code only in strict mode 1`] = `
274
[
285
{

0 commit comments

Comments
 (0)