Skip to content

Commit

Permalink
Implement basis
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuyui committed Nov 23, 2023
1 parent f7df4af commit 5d40b3d
Show file tree
Hide file tree
Showing 29 changed files with 4,009 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .config/typedoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import('typedoc').TypeDocOptions} */
module.exports = {
entryPoints: ['../src'],
excludeExternals: true,
excludePrivate: true,
excludeProtected: true,
excludeInternal: true,
out: '../build/typedocs',
entryPointStrategy: 'expand',
}
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
8 changes: 8 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['github>kitsuyui/renovate-config'],
// https://github.com/renovatebot/renovate/issues/19038
// https://github.com/renovatebot/renovate/issues/21438
// TODO: remove this when renovatebot/renovate#21438 is fixed
rangeStrategy: 'bump',
}
16 changes: 16 additions & 0 deletions .github/workflows/gitignore-in.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Update gitignore file

on:
schedule:
# daily at 00:00
- cron: '0 0 * * *'

permissions:
contents: write
pull-requests: write

jobs:
update-gitignore:
runs-on: ubuntu-latest
steps:
- uses: gitignore-in/[email protected]
18 changes: 18 additions & 0 deletions .github/workflows/happy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: happy-commit
on:
- pull_request

permissions:
contents: read
pull-requests: write
issues: write

jobs:
happy:
runs-on: ubuntu-latest
name: happy
continue-on-error: true
steps:
- uses: kitsuyui/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Website

on:
push:
branches:
- main
- basis

jobs:
deploy:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- uses: pnpm/[email protected]
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20.x

- run: pnpm install

- run: pnpm build

- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
cname: gitignore.in
16 changes: 16 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Spellcheck
on:
- pull_request
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check spelling
uses: crate-ci/typos@master
# typos is a Source code spell checker
# https://github.com/crate-ci/typos
61 changes: 61 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: test
on:
- pull_request
jobs:
test:
runs-on: ubuntu-latest

continue-on-error: true
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 21.x]

steps:
- uses: actions/checkout@v4

- uses: pnpm/[email protected]
with:
version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

- name: Cache Next.js build
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: pnpm install

- name: Check all
run: pnpm check-all

- name: Build
run: pnpm build

- name: E2E Test
uses: cypress-io/github-action@v5
with:
build: pnpm build
start: pnpm start

- name: Upload coverage to Codecov
if: matrix.node-version == '20.x'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/cobertura-coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
verbose: true
Loading

0 comments on commit 5d40b3d

Please sign in to comment.