Skip to content

Commit f6cdb32

Browse files
committed
ci: added check workflow
1 parent d0d9402 commit f6cdb32

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/check.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'renovate/**'
8+
paths-ignore:
9+
- '**.md'
10+
- '.gitignore'
11+
- 'assets/**'
12+
- '.github/**'
13+
- '!.github/workflows/check.yml'
14+
15+
pull_request:
16+
branches:
17+
- main
18+
paths-ignore:
19+
- '**.md'
20+
- '.gitignore'
21+
- 'assets/**'
22+
- '.github/**'
23+
- '!.github/workflows/check.yml'
24+
25+
workflow_dispatch:
26+
workflow_call:
27+
28+
jobs:
29+
lint-check-and-test:
30+
name: Lint, Check & Test
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36+
37+
- name: Setup PNPM
38+
uses: pnpm/[email protected]
39+
40+
- name: Setup Node.js
41+
uses: actions/[email protected]
42+
with:
43+
node-version: 18
44+
cache: pnpm
45+
46+
- name: Install Dependencies
47+
run: pnpm install
48+
49+
- name: Lint
50+
run: pnpm run lint
51+
52+
- name: Check
53+
run: pnpm run check
54+
55+
- name: Test
56+
run: pnpm run test

0 commit comments

Comments
 (0)