Skip to content

Commit 852f5f1

Browse files
committed
ci: added configs
1 parent b6a7af1 commit 852f5f1

5 files changed

Lines changed: 91 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @webdeveric

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [webdeveric]

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: 'npm'
9+
directory: '/'
10+
schedule:
11+
interval: 'quarterly'
12+
labels:
13+
- 'dependencies'

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
concurrency:
6+
group: ci-${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
ci:
11+
name: Continuous Integration
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- name: Print Runner Specs
15+
run: |
16+
lscpu
17+
cat /proc/meminfo
18+
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Use Node.js
26+
uses: actions/setup-node@v6
27+
with:
28+
node-version-file: '.nvmrc'
29+
cache: 'pnpm'
30+
31+
- name: Installing dependencies
32+
run: pnpm install --frozen-lockfile
33+
34+
- name: Linting
35+
run: pnpm lint
36+
37+
- name: Type checking
38+
run: pnpm typecheck
39+
40+
- name: Testing
41+
run: pnpm coverage
42+
43+
- name: Building
44+
run: pnpm build
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PR Commit Messages
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read # for checkout
8+
9+
jobs:
10+
commit-messages:
11+
name: Lint commit messages
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v6
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Use Node.js
23+
uses: actions/setup-node@v6
24+
with:
25+
node-version-file: '.nvmrc'
26+
cache: 'pnpm'
27+
28+
- name: Installing dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Linting PR commit messages
32+
run: pnpm exec commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 commit comments

Comments
 (0)