-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3ee03a
commit fe10e6e
Showing
8 changed files
with
148 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"baseBranches": ["main"], | ||
"timezone": "Europe/Lisbon", | ||
"schedule": ["before 9pm on sunday"], | ||
"extends": [":dependencyDashboard", ":disableRateLimiting", ":semanticCommits"], | ||
"rangeStrategy": "pin", | ||
"enabledManagers": ["github-actions", "regex", "npm"], | ||
"commitMessageAction": "", | ||
"commitMessageTopic": "{{depName}}", | ||
"commitMessageExtra": "{{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if isMajor}}{{prettyNewMajor}}{{else}}{{#if isSingleVersion}}{{prettyNewVersion}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}{{/if}}{{/if}}", | ||
"packageRules": [ | ||
{ | ||
"matchManagers": ["github-actions"], | ||
"commitMessageTopic": "{{depName}}" | ||
}, | ||
{ | ||
"matchPackagePatterns": ["actionlint"], | ||
"commitMessageTopic": "actionlint" | ||
}, | ||
{ | ||
"matchPackagePatterns": ["typos"], | ||
"commitMessageTopic": "typos" | ||
}, | ||
{ | ||
"matchPackagePatterns": ["bun"], | ||
"rangeStrategy": "in-range-only" | ||
} | ||
], | ||
"regexManagers": [ | ||
{ | ||
"fileMatch": ["^\\.github/workflows/[^/]+\\.yml$"], | ||
"matchStrings": [ | ||
"version: \"(?<currentValue>.*?)\"\\s+run: curl -Ls( -o \\w+)? \"https://github.com/(?<depName>.*?)/releases/download.*", | ||
"https://github\\.com/(?<depName>.*?)/archive/refs/tags/v(?<currentValue>.*?)\\.tar\\.gz" | ||
], | ||
"datasourceTemplate": "github-releases", | ||
"extractVersionTemplate": "^v(?<version>.*)$" | ||
} | ||
], | ||
"rebaseWhen": "never", | ||
"labels": ["type: dependencies"], | ||
"prBodyTemplate": "{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{controls}}}{{{footer}}}", | ||
"prHeader": "", | ||
"prFooter": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Bun | ||
on: | ||
pull_request: | ||
paths: | ||
- "**/*.ts" | ||
|
||
jobs: | ||
bun-test: | ||
name: Test | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: oven-sh/setup-bun@v2 | ||
- run: bun install | ||
|
||
- name: Run tests | ||
run: bun test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Github Actions | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/*.yml | ||
|
||
jobs: | ||
actionlint: | ||
name: Validate | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Actionlint | ||
env: | ||
version: "1.7.1" | ||
run: curl -Ls "https://github.com/rhysd/actionlint/releases/download/v${{ env.version }}/actionlint_${{ env.version }}_linux_amd64.tar.gz" | sudo tar -x -z -C /usr/local/bin actionlint | ||
|
||
- name: Run Actionlint | ||
run: | | ||
echo "::add-matcher::.github/matchers/actionlint.json" | ||
actionlint -color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Biome | ||
on: | ||
pull_request: | ||
paths: | ||
- "**/*.ts" | ||
- "**/*.json" | ||
|
||
jobs: | ||
biome: | ||
name: Lint and format | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: biomejs/setup-biome@v2 | ||
|
||
- name: Run Biome | ||
run: biome ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Conventional Commits" | ||
name: Conventional Commits | ||
on: | ||
pull_request: | ||
types: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Renovate | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/validate-renovate.yml | ||
- .github/renovate.json | ||
|
||
jobs: | ||
validate-renovate-config: | ||
name: Validate config | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: oven-sh/setup-bun@v2 | ||
- run: bun install -g renovate | ||
|
||
- name: Validate config | ||
run: renovate-config-validator .github/renovate.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Typos | ||
on: | ||
pull_request: | ||
paths: | ||
- "**/*.md" | ||
|
||
jobs: | ||
typos: | ||
name: Check for language typos | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# No major tag unfortunately | ||
# https://github.com/crate-ci/typos/issues/857 | ||
- uses: crate-ci/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters