Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Chore/merge-chore/sync-template-template #45

Merged
merged 198 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
080bedf
feat: initial commit
rndquu Mar 7, 2023
f9b45ea
feat: add TS support
rndquu Mar 7, 2023
9c9366a
feat: add conventional commits
rndquu Mar 7, 2023
7b7c6f5
feat: add dotenv
rndquu Mar 7, 2023
915cc8a
docs: add readme
rndquu Mar 7, 2023
e7fff97
feat: add pull request template
0x4007 Apr 30, 2023
5ce8aef
Create cloudflare-deploy
0xcodercrane May 2, 2023
d1e8b0b
feat: create helloWorld index.html
0xcodercrane May 2, 2023
af60573
feat: push action for development branch
0xcodercrane May 2, 2023
d2cb9f8
feat: update readme
0xcodercrane May 2, 2023
3b84211
Update cloudflare-deploy.yml
0xcodercrane May 3, 2023
e80cbfe
Merge pull request #4 from 0xcodercrane/development
0xcodercrane May 3, 2023
8aa986e
fix: rename pull_request_template
0x4007 Jun 10, 2023
82c5e4b
Update conventional-commits.yml
0x4007 Jun 29, 2023
6254a5d
chore: update dependencies and prettier
0x4007 Jun 29, 2023
abc8835
chore: update package json
0x4007 Jun 29, 2023
c97650e
Update conventional-commits.yml
0x4007 Jul 10, 2023
5d17d42
Update cloudflare-deploy.yml
0x4007 Aug 8, 2023
4680536
Update cloudflare-deploy.yml
rndquu Aug 17, 2023
eed2761
Merge pull request #8 from ubiquity/rndquu-patch-1
0x4007 Aug 17, 2023
bfcfcda
feat: format on lint-staged
0x4007 Nov 25, 2023
7c2aa64
fix: commit-msg script and add lint-staged command
0x4007 Nov 25, 2023
31825e8
feat: prefer named functions
0x4007 Nov 25, 2023
f3997c9
feat: add naming conventions rule
0x4007 Nov 25, 2023
805224f
feat: easy ui support
0x4007 Nov 29, 2023
7ffbda1
feat: easy ui support
0x4007 Nov 29, 2023
4880237
fix: prettier for css
0x4007 Nov 29, 2023
885d820
chore: add .env file to .gitignore
0x4007 Nov 29, 2023
937630e
fix: lint staged
0x4007 Dec 7, 2023
9cad989
fix: lint staged
0x4007 Dec 7, 2023
7ff54df
chore: remove tabs
0x4007 Jan 23, 2024
4e8bf2b
feat: reusable deploy script
0x4007 Jan 23, 2024
e674345
feat: ban non null assertions
0x4007 Jan 23, 2024
db2e0e0
Update README.md
0x4007 Jan 23, 2024
53bfa02
feat: spell check on commit
0x4007 Jan 29, 2024
86cb568
feat: copy typescript rules
0x4007 Jan 31, 2024
25e0e26
Merge pull request #11 from ubiquity/feat/typestrict-eslint
0x4007 Jan 31, 2024
b6de893
chore: remove no unnecessary condition for false positives
0x4007 Jan 31, 2024
3e67376
Merge branch 'feat/typestrict-eslint' into development
0x4007 Jan 31, 2024
4026845
fix: forgot to include cspell
0x4007 Feb 2, 2024
8ee208a
fix: cspell ci
0x4007 Feb 2, 2024
48b4419
fix(ci): cspell
0x4007 Feb 2, 2024
49fc65f
chore: remove deprecated
0x4007 Feb 2, 2024
27786d7
feat(cspell): support colors
0x4007 Feb 2, 2024
ea8c924
fix(ci): cspell
0x4007 Feb 2, 2024
821f81e
feat: production deploys
0x4007 Feb 16, 2024
b99831c
chore: set up build for cd
0x4007 Feb 19, 2024
d9bbe47
chore(deps): upgrade all
0x4007 Feb 19, 2024
d3b5d08
chore: test on another brnach
0x4007 Feb 19, 2024
d117e10
chore: bump ci
0x4007 Feb 19, 2024
8b25785
chore: bump ci
0x4007 Feb 19, 2024
3ad759b
chore: bump ci
0x4007 Feb 19, 2024
ad2564c
chore: bump ci
0x4007 Feb 19, 2024
56a8cf8
chore: bump ci
0x4007 Feb 19, 2024
0002fec
chore: bump ci
0x4007 Feb 19, 2024
dc336a9
feat: workflow dispatch
0x4007 Feb 19, 2024
dcca21f
Merge branch 'test/cd'
0x4007 Feb 19, 2024
de20331
chore: debug cd
0x4007 Feb 19, 2024
ea72c5e
chore: debug cd
0x4007 Feb 19, 2024
9a8fc77
chore: debug cd
0x4007 Feb 19, 2024
d61f01e
chore: debug cd
0x4007 Feb 19, 2024
83b6cb6
feat: add knip CI configuration
gitcoindev Feb 19, 2024
dbec9e3
feat: commit or pr
0x4007 Feb 19, 2024
126e819
feat: workflow dispatch
0x4007 Feb 19, 2024
1dcef50
chore: test env vars
0x4007 Feb 19, 2024
b30272d
Squashed commit of the following:
0x4007 Feb 19, 2024
1f80af6
fix: whitespace
0x4007 Feb 19, 2024
83c2e29
fix: transport secrets
0x4007 Feb 19, 2024
059487c
fix: app installation if
0x4007 Feb 19, 2024
9fbac16
feat: cd
0x4007 Feb 19, 2024
6eb4ace
feat: new github env style
0x4007 Feb 19, 2024
0c76a58
chore: update Knip yaml actions
gitcoindev Feb 20, 2024
8674928
Merge pull request #13 from gitcoindev/feature-knip-ci
0x4007 Feb 20, 2024
29e8432
chore: update supabase key name
0x4007 Feb 20, 2024
84b4a91
Merge branch 'development' of https://github.com/ubiquity/ts-template…
0x4007 Feb 20, 2024
f2fea11
fix(ci): on prs
0x4007 Feb 20, 2024
783e786
fix: change dist to static
0x4007 Feb 20, 2024
a8f8df5
Update esbuild-server.ts
0x4007 Feb 20, 2024
16da5f5
Merge branch 'chore/fix-build' into development
0x4007 Feb 21, 2024
4818b15
fix: gitignore
0x4007 Feb 21, 2024
a1e88ed
Merge remote-tracking branch 'origin/chore/fix-build' into development
0x4007 Feb 21, 2024
2393807
fix: commit sha
0x4007 Feb 27, 2024
d7670f4
feat: default Jest testing configuration
gentlementlegen Mar 4, 2024
d787bb6
Update .github/workflows/jest-testing.yml
0x4007 Mar 4, 2024
693b8a9
chore: moved jest config from js to ts
gentlementlegen Mar 4, 2024
d7a1b1a
chore: removed unused check to trigger Jest Action
gentlementlegen Mar 4, 2024
92cad2c
feat: cypress testing suite
gentlementlegen Mar 4, 2024
f0c06fb
feat: default Jest testing configuration (#19)
Mar 4, 2024
92e9e92
Merge remote-tracking branch 'ubi/development' into feat/cypress-defa…
gentlementlegen Mar 5, 2024
c96273b
chore: updated yarn.lock
gentlementlegen Mar 5, 2024
51afec5
chore: removed checks for warn messages in the console
gentlementlegen Mar 5, 2024
438da50
Merge pull request #22 from FernandVEYRIER/feat/cypress-default-conf
0x4007 Mar 5, 2024
419442c
fix: disabled comments on every push, and added default value for cov…
gentlementlegen Mar 6, 2024
860695d
chore: moved knip configuration
gentlementlegen Mar 6, 2024
80a8717
chore: workflow dispatch for knip
gentlementlegen Mar 6, 2024
79c9b1c
chore: workflow dispatch for knip
gentlementlegen Mar 6, 2024
0ac9d65
chore: changed action target to pull_request_target
gentlementlegen Mar 6, 2024
aebfe0e
Merge pull request #24 from FernandVEYRIER/development
0x4007 Mar 6, 2024
6a14695
chore: added test section to README.md
gentlementlegen Mar 6, 2024
03d0506
Merge pull request #26 from FernandVEYRIER/development
0x4007 Mar 6, 2024
93194db
Merge remote-tracking branch 'ubi/development' into fix/permissions
gentlementlegen Mar 6, 2024
85f20d4
ci(cspell): fix
0x4007 Mar 6, 2024
ced64ca
Merge pull request #25 from FernandVEYRIER/fix/permissions
0x4007 Mar 6, 2024
5ee55cb
Create CODEOWNERS
0x4007 Mar 6, 2024
0ba1342
chore: added missing dep
gentlementlegen Mar 8, 2024
9222b71
chore: added ignore rules to knip
gentlementlegen Mar 8, 2024
aaf83b0
chore: removed ts-node dep and changed jest config
gentlementlegen Mar 8, 2024
ffa570d
Merge remote-tracking branch 'ubi/development' into fix/knip
gentlementlegen Mar 8, 2024
7695c37
Merge pull request #29 from FernandVEYRIER/fix/knip
Mar 8, 2024
1b471a2
chore: added ternary rules for eslint
gentlementlegen Mar 8, 2024
a05352e
chore: fixed trailing space in conf
gentlementlegen Mar 8, 2024
f680079
Merge pull request #30 from FernandVEYRIER/feat/eslint-rules
0x4007 Mar 8, 2024
252fbb8
ci: add init workflow
rndquu Mar 10, 2024
52b0b50
Merge pull request #32 from rndquu/ci/add-init-workflow
0x4007 Mar 10, 2024
f667d6e
feat: release please Action
gentlementlegen Mar 12, 2024
f0328de
chore: changed release to target default branch
gentlementlegen Mar 12, 2024
698c4cc
chore: changed release to target default branch
gentlementlegen Mar 12, 2024
b341ccc
chore: added permissions to release please
gentlementlegen Mar 12, 2024
4759d69
chore: removed npm env variable
gentlementlegen Mar 12, 2024
37452f5
Update release-please.yml
0x4007 Mar 12, 2024
9f658e9
Merge pull request #34 from FernandVEYRIER/feat/release
0x4007 Mar 12, 2024
397bf99
Update CODEOWNERS
0x4007 Mar 13, 2024
6235868
ci: pass cloudflare credentials
rndquu Mar 13, 2024
c8ca164
Merge pull request #35 from ubiquity/rndquu-patch-1
rndquu Mar 13, 2024
7ff0ab7
ci: add reusable cloudflare deploy
rndquu Mar 18, 2024
90671ef
ci: use single action
rndquu Mar 18, 2024
84d03ca
Merge pull request #37 from rndquu/ci/add-cf-deploy
rndquu Mar 19, 2024
4fc4cb0
ci: update deploy.yml
rndquu Mar 19, 2024
1e2ac44
chore: add pascal case linter to enforce Erc20Permit and Erc721Permit…
jordan-ae Apr 19, 2024
66e9fe8
chore: enable StrictPascalCase on all Identifiers
jordan-ae Apr 23, 2024
9385bab
chore: undo unnecessary changes
Apr 29, 2024
3d239c8
chore: add eslint-filename plugin
Keyrxng May 2, 2024
850886a
revert camelCase deletions and change to strictCamelCase
May 2, 2024
bad8429
Merge pull request #40 from jordan-ae/PascalCaseLinter
0x4007 May 3, 2024
bf59bee
Merge branch 'development' of https://github.com/ubiquity/ts-template…
Keyrxng May 13, 2024
67e0375
fix: use regex and ignore e2e.ts
Keyrxng May 13, 2024
b92db67
chore: eslint config type inference
Keyrxng May 13, 2024
0f9acf6
Merge pull request #23 from Keyrxng/development
gentlementlegen May 13, 2024
269bd86
chore: update knip configuration in the template to run on pull_request
gitcoindev May 24, 2024
c99c565
Merge pull request #43 from gitcoindev/refactor-knip-to-run-on-pull-r…
rndquu May 27, 2024
b9c377c
fix: moved eslint from js to json and accept numbers in file names
gentlementlegen May 28, 2024
1874bc7
Merge pull request #44 from gentlementlegen/fix/eslint-format
0x4007 May 28, 2024
5dd1302
fix: workflow release please
gentlementlegen Jun 3, 2024
0499dcb
fix: workflow cypress
gentlementlegen Jun 3, 2024
0bf1b43
chore: test reporting lib
gentlementlegen Jun 3, 2024
3f35a2d
Merge pull request #1 from Meniole/development
gentlementlegen Jun 3, 2024
d9acdb0
chore: test reporting lib
gentlementlegen Jun 3, 2024
fd14c9e
chore: test reporting lib
gentlementlegen Jun 3, 2024
d408bc1
Merge pull request #2 from Meniole/development
gentlementlegen Jun 3, 2024
befe97f
chore: test reporting lib
gentlementlegen Jun 3, 2024
4af0e66
Update jest-testing.yml
gentlementlegen Jun 3, 2024
a45d976
chore: find PR number
gentlementlegen Jun 3, 2024
6b9fa4f
chore: remove event
gentlementlegen Jun 3, 2024
a20d25e
Merge branch 'refs/heads/meniole-main' into meniole-development
gentlementlegen Jun 3, 2024
e9cbd15
Merge pull request #3 from Meniole/development
gentlementlegen Jun 3, 2024
dee5235
chore: test pr number
gentlementlegen Jun 3, 2024
b3505f7
chore: test pr number
gentlementlegen Jun 3, 2024
e3d694d
Merge branch 'main' into development
gentlementlegen Jun 3, 2024
ad1d7c4
chore: test pr number
gentlementlegen Jun 3, 2024
eb4cc0d
Merge pull request #4 from Meniole/development
gentlementlegen Jun 3, 2024
e219ea0
chore: test comment
gentlementlegen Jun 3, 2024
fe828f4
chore: test comment
gentlementlegen Jun 3, 2024
62f0d87
Merge pull request #5 from Meniole/development
gentlementlegen Jun 3, 2024
720b091
chore: revert default branch for release-please.yml
gentlementlegen Jun 3, 2024
976252d
Merge branch 'refs/heads/development'
gentlementlegen Jun 3, 2024
16b3090
chore: revert default branch for release-please.yml
gentlementlegen Jun 3, 2024
f19366e
Merge pull request #45 from gentlementlegen/development
gentlementlegen Jun 5, 2024
9def289
chore(development): release 1.0.0
github-actions[bot] Jun 5, 2024
109dfd3
Merge pull request #47 from ubiquity/release-please--branches--develo…
gentlementlegen Jun 5, 2024
b355f3a
ci: run knip reporter on failure
rndquu Jun 19, 2024
0e1cf4d
Merge pull request #49 from rndquu/ci/run-knip-on-fail
gitcoindev Jun 21, 2024
079b1ab
Update README.md
gentlementlegen Jun 21, 2024
51f8dcd
Update README.md
gentlementlegen Jun 21, 2024
2ef2a06
chore: adding untested function
gentlementlegen Jun 21, 2024
1df6e5d
feat: changed tests to yarn with coverage
gentlementlegen Jun 21, 2024
4b48fe0
Merge branch 'main' into development
gentlementlegen Jun 21, 2024
6bc9202
chore: added yarn install
gentlementlegen Jun 21, 2024
8354c0b
Merge remote-tracking branch 'refs/remotes/origin/fix/disable-jest-co…
gentlementlegen Jun 21, 2024
2dd4343
chore: removed untested function
gentlementlegen Jun 21, 2024
cecb44b
chore: test report on action
gentlementlegen Jun 21, 2024
9021467
Merge branch 'refs/heads/fix/disable-jest-comments'
gentlementlegen Jun 22, 2024
9fdf38e
Merge pull request #51 from gentlementlegen/main
0x4007 Jun 24, 2024
997e61b
Delete CHANGELOG.md
0x4007 Jul 19, 2024
ef2a565
Update README.md
0x4007 Jul 19, 2024
151de15
Merge pull request #53 from ubiquity/0x4007-patch-1
0x4007 Jul 19, 2024
0beec19
Merge remote-tracking branch 'template/development' into chore/merge-…
0x4007 Aug 1, 2024
3088b36
chore: remove cypress
0x4007 Aug 1, 2024
4537568
chore: remove jest
0x4007 Aug 1, 2024
bc226be
chore: remove `static/` and `build/`
0x4007 Aug 1, 2024
cd3a6cc
chore: lint
0x4007 Aug 1, 2024
30b4da7
fix(ci): build
0x4007 Aug 1, 2024
bfb3b41
fix(ci): migration
0x4007 Aug 1, 2024
d29fe0f
chore: rename basic to telegram
0x4007 Aug 1, 2024
8587778
fix: env imports and knip
0x4007 Aug 1, 2024
405c132
fix: env imports
0x4007 Aug 1, 2024
d823e95
refactor: remove unused function
0x4007 Aug 1, 2024
6fc6bce
fix: yarn start
0x4007 Aug 1, 2024
02f5c33
chore: change secrets format to be worker compatible
0x4007 Aug 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log"],
"useGitignore": true,
"language": "en",
"words": ["dataurl", "devpool", "inbucket", "keycloak", "outdir", "servedir", "signup", "signups", "supa", "supabase", "tele", "tsndr", "workos"],
"dictionaries": ["typescript", "node", "software-terms"],
"import": ["@cspell/dict-typescript/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-software-terms"],
"ignoreRegExpList": ["[0-9a-fA-F]{6}"]
}
133 changes: 40 additions & 93 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,106 +4,53 @@
"parserOptions": {
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint", "sonarjs", "filename-rules"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:sonarjs/recommended"],
"ignorePatterns": ["**/*.js"],
"rules": {
"filename-rules/match": [2, "/^(e2e\\.ts$|.*\/e2e\\.ts$|[a-z0-9]+(?:[-._a-z0-9]+)*\\.ts|\\.[a-z0-9]+)$/"],
"prefer-arrow-callback": ["warn", { "allowNamedFunctions": true }],
"func-style": ["warn", "declaration", { "allowArrowFunctions": false }],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/naming-convention": [
"@typescript-eslint/no-non-null-assertion": "error",
"constructor-super": "error",
"no-invalid-this": "off",
"@typescript-eslint/no-invalid-this": ["error"],
"no-restricted-syntax": ["error", "ForInStatement"],
"use-isnan": "error",
"no-unneeded-ternary": "error",
"no-nested-ternary": "error",
"@typescript-eslint/no-unused-vars": [
"error",
// {
// "selector": "default",
// "format": ["camelCase"],
// "leadingUnderscore": "allow",
// "trailingUnderscore": "allow"
// },
// {
// "selector": "import",
// "format": ["camelCase", "PascalCase"]
// },
// {
// "selector": "variable",
// "format": ["camelCase", "UPPER_CASE"],
// "leadingUnderscore": "allow",
// "trailingUnderscore": "allow"
// },
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "variableLike",
"format": ["camelCase"]
},
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["camelCase"],
"leadingUnderscore": "require"
},
{
"selector": "variable",
"types": ["boolean"],
"format": ["PascalCase"],
"prefix": ["is", "should", "has", "can", "did", "will"]
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
},
// {
// "selector": "variable",
// "modifiers": ["const"],
// "format": ["UPPER_CASE"]
// },
{
"selector": "typeParameter",
"format": ["PascalCase"],
"prefix": ["T"]
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": false
}
},
{
"selector": ["function", "variable"],
"format": ["camelCase"]
},
// {
// "selector": "property",
// "modifiers": ["requiresQuotes"],
// "format": null
// },
// {
// "selector": "property",
// "modifiers": ["private"],
// "format": ["camelCase"],
// "leadingUnderscore": "require"
// },
{
"selector": "variable",
"modifiers": ["destructured"],
"format": null
},
{
"selector": "variable",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
},
{
"selector": "variable",
"types": ["boolean"],
"format": ["PascalCase"],
"prefix": ["is", "has", "should", "can", "did", "will"]
"args": "after-used",
"ignoreRestSiblings": true,
"vars": "all",
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"sonarjs/no-all-duplicated-branches": "error",
"sonarjs/no-collection-size-mischeck": "error",
"sonarjs/no-duplicated-branches": "error",
"sonarjs/no-element-overwrite": "error",
"sonarjs/no-identical-conditions": "error",
"sonarjs/no-identical-expressions": "error",
"@typescript-eslint/naming-convention": [
"error",
{ "selector": "interface", "format": ["StrictPascalCase"], "custom": { "regex": "^I[A-Z]", "match": false } },
{ "selector": "memberLike", "modifiers": ["private"], "format": ["strictCamelCase"], "leadingUnderscore": "require" },
{ "selector": "typeLike", "format": ["StrictPascalCase"] },
{ "selector": "typeParameter", "format": ["StrictPascalCase"], "prefix": ["T"] },
{ "selector": "variable", "format": ["strictCamelCase", "UPPER_CASE"], "leadingUnderscore": "allow", "trailingUnderscore": "allow" },
{ "selector": "variable", "format": ["strictCamelCase"], "leadingUnderscore": "allow", "trailingUnderscore": "allow" },
{ "selector": "variable", "modifiers": ["destructured"], "format": null },
{ "selector": "variable", "types": ["boolean"], "format": ["StrictPascalCase"], "prefix": ["is", "should", "has", "can", "did", "will", "does"] },
{ "selector": "variableLike", "format": ["strictCamelCase"] },
{ "selector": ["function", "variable"], "format": ["strictCamelCase"] }
]
}
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0x4007 marked this conversation as resolved.
Show resolved Hide resolved
12 changes: 12 additions & 0 deletions .github/knip.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { KnipConfig } from "knip";

const config: KnipConfig = {
entry: ["src/worker.ts"],
project: ["src/**/*.ts"],
ignore: ["src/types/config.ts", "**/__mocks__/**", "**/__fixtures__/**"],
ignoreExportsUsedInFile: true,
ignoreDependencies: ["eslint-config-prettier", "eslint-plugin-prettier", "@mswjs/data"],
eslint: true,
};

export default config;
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
0x4007 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Build
run: |
yarn
yarn build

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: static
path: static
2 changes: 1 addition & 1 deletion .github/workflows/cloudflare-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20.3.0"
node-version: "20.10.0"

- name: Yarn Install
run: yarn install
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Conventional Commits

on:
pull_request:
push:
branches: [development]

jobs:
conventional-commits:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/cspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Spell Check

on:
push:

jobs:
spellcheck:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10.0"

- name: Install cspell
run: yarn add cspell

- name: Run cspell
run: yarn format:cspell
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
0x4007 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to Cloudflare Pages

on:
workflow_run:
workflows: ["Build"]
types:
- completed

jobs:
deploy-to-cloudflare:
name: Automatic Cloudflare Deploy
runs-on: ubuntu-22.04
steps:
- name: Deploy to Cloudflare
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: ubiquity/cloudflare-deploy-action@main
with:
repository: ${{ github.repository }}
production_branch: ${{ github.event.repository.default_branch }}
build_artifact_name: "static"
output_directory: "static"
current_branch: ${{ github.event.workflow_run.head_branch }}
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
commit_sha: ${{ github.event.workflow_run.head_sha }}
workflow_run_id: ${{ github.event.workflow_run.id }}
38 changes: 38 additions & 0 deletions .github/workflows/knip-reporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Knip-reporter

on:
workflow_run:
workflows: ["Knip"]
types:
- completed

jobs:
knip-reporter:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion != 'success' }}
steps:
- uses: actions/download-artifact@v4
with:
name: knip-results
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Read pr number
id: pr-number
uses: juliangruber/read-file-action@v1
with:
path: ./pr-number.txt
trim: true

- name: Report knip results to pull request
uses: gitcoindev/knip-reporter@main
with:
verbose: true
comment_id: ${{ github.workflow }}-reporter
command_script_name: knip-ci
annotations: true
ignore_results: false
json_input: true
json_input_file_name: knip-results.json
pull_request_number: ${{ steps.pr-number.outputs.content }}
token: ${{ secrets.GITHUB_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/knip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Knip

on:
pull_request:

jobs:
run-knip:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

# needed to use yarn v4
- name: Enable corepack
run: corepack enable

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Install toolchain
run: yarn install

- name: Store PR number
run: echo ${{ github.event.number }} > pr-number.txt

- name: Run Knip
run: yarn knip || yarn knip --reporter json > knip-results.json

- name: Upload knip result
if: failure()
uses: actions/upload-artifact@v4
with:
name: knip-results
path: |
knip-results.json
pr-number.txt
26 changes: 26 additions & 0 deletions .github/workflows/release-please.yml
gentlementlegen marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release-please

on:
workflow_dispatch:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.10.0"
registry-url: https://registry.npmjs.org/
- run: |
yarn install --immutable --immutable-cache --check-cache
2 changes: 1 addition & 1 deletion .github/workflows/run-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20.3.0"
node-version: "20.10.0"

- name: Install
run: yarn install
Expand Down
Loading
Loading