Skip to content

Commit

Permalink
infra: add infra files
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed May 28, 2023
1 parent 829a306 commit 0b0c0fe
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Owner
* @Shinigami92
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [Shinigami92]
custom: ['https://www.paypal.com/donate?hosted_button_id=L7GY729FBKTZY']
50 changes: 50 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "schedule:nonOfficeHours", "group:allNonMajor"],
"timezone": "Europe/Berlin",
"labels": ["dependencies"],
"reviewersFromCodeOwners": true,
"rangeStrategy": "bump",
"packageRules": [
{
"groupName": "devDependencies",
"matchDepTypes": ["devDependencies"],
"rangeStrategy": "bump"
},
{
"groupName": "dependencies",
"matchDepTypes": ["dependencies"],
"rangeStrategy": "replace"
},
{
"groupName": "peerDependencies",
"matchDepTypes": ["peerDependencies"],
"rangeStrategy": "widen"
},
{
"groupName": "engines",
"matchDepTypes": ["engines"],
"rangeStrategy": "replace"
},
{
"groupName": "typescript-eslint",
"matchPackagePrefixes": ["@typescript-eslint/"]
},
{
"groupName": "vitest",
"matchPackageNames": ["@vitest/coverage-c8", "@vitest/ui", "vitest"]
},
{
"groupName": "prettier",
"matchPackageNames": ["@types/prettier", "prettier"]
},
{
"groupName": "typescript",
"matchPackageNames": ["typescript"]
}
],
"vulnerabilityAlerts": {
"labels": ["security"],
"assigneesFromCodeOwners": true
}
}
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI

on:
push:
branches:
- main
pull_request:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18]
fail-fast: false
timeout-minutes: 10

name: 'Build & Unit Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Required for docs/versions tests
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'

- name: Install deps
run: pnpm install

- name: Build
run: pnpm run build

- name: Test
run: pnpm run test

lint:
runs-on: ubuntu-latest
timeout-minutes: 10
name: 'Lint: node-18, ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4

- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- name: Install deps
run: pnpm install

# - name: Lint
# run: pnpm run lint

- name: Check formatting
run: pnpm prettier --check .
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"pflannery.vscode-versionlens",
"streetsidesoftware.code-spell-checker"
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"files.associations": {
"*.json5": "jsonc"
},
"typescript.tsdk": "node_modules/typescript/lib"
}

0 comments on commit 0b0c0fe

Please sign in to comment.