Skip to content

Commit 0b0c0fe

Browse files
committed
infra: add infra files
1 parent 829a306 commit 0b0c0fe

File tree

6 files changed

+142
-0
lines changed

6 files changed

+142
-0
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Owner
2+
* @Shinigami92

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: [Shinigami92]
2+
custom: ['https://www.paypal.com/donate?hosted_button_id=L7GY729FBKTZY']

.github/renovate.json5

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base", "schedule:nonOfficeHours", "group:allNonMajor"],
4+
"timezone": "Europe/Berlin",
5+
"labels": ["dependencies"],
6+
"reviewersFromCodeOwners": true,
7+
"rangeStrategy": "bump",
8+
"packageRules": [
9+
{
10+
"groupName": "devDependencies",
11+
"matchDepTypes": ["devDependencies"],
12+
"rangeStrategy": "bump"
13+
},
14+
{
15+
"groupName": "dependencies",
16+
"matchDepTypes": ["dependencies"],
17+
"rangeStrategy": "replace"
18+
},
19+
{
20+
"groupName": "peerDependencies",
21+
"matchDepTypes": ["peerDependencies"],
22+
"rangeStrategy": "widen"
23+
},
24+
{
25+
"groupName": "engines",
26+
"matchDepTypes": ["engines"],
27+
"rangeStrategy": "replace"
28+
},
29+
{
30+
"groupName": "typescript-eslint",
31+
"matchPackagePrefixes": ["@typescript-eslint/"]
32+
},
33+
{
34+
"groupName": "vitest",
35+
"matchPackageNames": ["@vitest/coverage-c8", "@vitest/ui", "vitest"]
36+
},
37+
{
38+
"groupName": "prettier",
39+
"matchPackageNames": ["@types/prettier", "prettier"]
40+
},
41+
{
42+
"groupName": "typescript",
43+
"matchPackageNames": ["typescript"]
44+
}
45+
],
46+
"vulnerabilityAlerts": {
47+
"labels": ["security"],
48+
"assigneesFromCodeOwners": true
49+
}
50+
}

.github/workflows/ci.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read # to fetch code (actions/checkout)
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
node_version: [18]
19+
fail-fast: false
20+
timeout-minutes: 10
21+
22+
name: 'Build & Unit Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
with:
27+
# Required for docs/versions tests
28+
fetch-depth: 0
29+
30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v2.2.4
32+
33+
- name: Set node version to ${{ matrix.node_version }}
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: ${{ matrix.node_version }}
37+
cache: 'pnpm'
38+
39+
- name: Install deps
40+
run: pnpm install
41+
42+
- name: Build
43+
run: pnpm run build
44+
45+
- name: Test
46+
run: pnpm run test
47+
48+
lint:
49+
runs-on: ubuntu-latest
50+
timeout-minutes: 10
51+
name: 'Lint: node-18, ubuntu-latest'
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v3
55+
with:
56+
fetch-depth: 0
57+
58+
- name: Install pnpm
59+
uses: pnpm/action-setup@v2.2.4
60+
61+
- name: Set node version to 18
62+
uses: actions/setup-node@v3
63+
with:
64+
node-version: 18
65+
cache: 'pnpm'
66+
67+
- name: Install deps
68+
run: pnpm install
69+
70+
# - name: Lint
71+
# run: pnpm run lint
72+
73+
- name: Check formatting
74+
run: pnpm prettier --check .

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig",
4+
"esbenp.prettier-vscode",
5+
"pflannery.vscode-versionlens",
6+
"streetsidesoftware.code-spell-checker"
7+
]
8+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files.associations": {
3+
"*.json5": "jsonc"
4+
},
5+
"typescript.tsdk": "node_modules/typescript/lib"
6+
}

0 commit comments

Comments
 (0)