Skip to content

Commit a5a1ee6

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

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/check.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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/action-setup@v3.0.0
39+
40+
- name: Setup Node.js
41+
uses: actions/setup-node@v4.0.2
42+
with:
43+
node-version: 18
44+
cache: pnpm
45+
46+
- name: Install Dependencies
47+
run: |
48+
pnpm install
49+
pnpm exec playwright install --with-deps
50+
51+
- name: Lint
52+
run: pnpm run lint
53+
54+
- name: Check
55+
run: pnpm run check
56+
57+
- name: Test
58+
run: pnpm run test

0 commit comments

Comments
 (0)