Skip to content

Commit 8afc82a

Browse files
authored
ci: add check workflow (#11)
1 parent 4424b67 commit 8afc82a

File tree

3 files changed

+40
-7
lines changed

3 files changed

+40
-7
lines changed

Diff for: .github/dependabot.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: 'npm' # See documentation for possible values
9+
directory: '/' # Location of package manifests
1010
schedule:
11-
interval: "monthly"
12-
- package-ecosystem: "github-actions"
13-
directory: "/"
11+
interval: 'monthly'
12+
- package-ecosystem: 'github-actions'
13+
directory: '/'
1414
schedule:
15-
interval: "monthly"
15+
interval: 'monthly'

Diff for: .github/workflows/pr-check.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PR Check
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
pr-check:
10+
name: PR Check
11+
runs-on: ubuntu-latest
12+
env:
13+
HUSKY: 0
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 'lts/*'
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Lint
26+
run: npm run lint
27+
- name: Type check
28+
run: npm run type-check
29+
- name: Build
30+
run: npm run build
31+
# - name: Test
32+
# run: npm run test

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"lint": "prettier --check .",
1111
"pre-commit": "lint-staged",
1212
"prepare": "husky",
13-
"semantic-release": "semantic-release"
13+
"semantic-release": "semantic-release",
14+
"type-check": "tsc --pretty --noEmit"
1415
},
1516
"bugs": "https://github.com/capitnflam/eslint-plugin/issues",
1617
"dependencies": {

0 commit comments

Comments
 (0)