Skip to content

Commit 6927c07

Browse files
committedJul 11, 2024
feat: initial commit
0 parents  commit 6927c07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+12330
-0
lines changed
 

‎.github/workflows/ci.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [18.20.3]
16+
steps:
17+
- name: Setup
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 9.4.0
21+
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: Run type check
29+
run: pnpm run typecheck
30+
31+
- name: Run ESLint
32+
run: pnpm run lint
33+
34+
- name: Run tests
35+
run: pnpm run test

‎.github/workflows/semantic-pr.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Semantic Pull Request
2+
on:
3+
pull_request_target:
4+
types: [opened, reopened, edited, synchronize]
5+
permissions:
6+
pull-requests: read
7+
jobs:
8+
main:
9+
name: Validate PR Title
10+
runs-on: ubuntu-latest
11+
steps:
12+
# https://github.com/amannn/action-semantic-pull-request/releases/tag/v5.5.3
13+
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
subjectPattern: ^(?![A-Z]).+$
18+
subjectPatternError: |
19+
The subject "{subject}" found in the pull request title "{title}"
20+
didn't match the configured pattern. Please ensure that the subject
21+
doesn't start with an uppercase character.
22+
types: |
23+
fix
24+
feat
25+
chore
26+
build
27+
ci
28+
perf
29+
docs
30+
refactor
31+
revert
32+
test

0 commit comments

Comments
 (0)
Please sign in to comment.