Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion .github/ISSUE_TEMPLATE/0-bug.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: "⚠️ Report an Issue"
description: "Something Not Working Right? Please let us know..."
description: "Please let us know if something is not right..."
labels: ["bug"]
assignees:
- smashedr

body:
- type: markdown
attributes:
value: |
All issues will be responded too.

- type: input
id: website
validations:
Expand Down
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/1-feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "💡 Request a Feature"
description: "Request new features or enhancements"
labels: ["enhancement"]
assignees:
- smashedr

body:
- type: markdown
attributes:
value: |
All requests will be responded too.

- type: textarea
id: description
validations:
required: true
attributes:
label: Details
description: Please describe the feature or enhancement you are requesting and what it should do.
placeholder: Provide as many details as you can...

- type: markdown
attributes:
value: |
Thank you for taking the time to make this report!
18 changes: 7 additions & 11 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
blank_issues_enabled: true
contact_links:
- name: "💡 Request a Feature"
about: Request a New Feature or Enhancement in the Discussions.
url: https://github.com/cssnr/cache-cleaner/discussions/new?category=feature-requests

- name: "❔ Ask a Question"
about: Ask a General Question or start a Discussions.
url: https://github.com/cssnr/cache-cleaner/discussions/new?category=q-a
- name: "❔ Start a Discussion"
about: Ask a general question or start a discussion
url: https://github.com/cssnr/cache-cleaner/discussions

- name: "💬 Join Discord"
about: Chat with us about Issues, Features, Questions and More.
about: Chat with us about anything
url: https://discord.gg/wXy6m2X8wY

- name: "📝 Submit Feedback"
about: Send General Feedback.
url: https://cssnr.github.io/feedback/?app=Cache%20Cleaner
- name: "🌐 View Developer Site"
about: Visit the developers website
url: https://cssnr.github.io/
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- '"inputs" section is alias node but mapping node is expected'
- '"paths" section must be sequence node but got alias node with "" tag'
- '"paths-ignore" section must be sequence node but got alias node with "" tag'
30 changes: 15 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,42 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
contents: write

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Setup Node 22"
uses: actions/setup-node@v4
- name: "Setup Node 24"
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
node-version: 24

- name: "Install"
run: |
npm install
npm ci

- name: "Update Manifest Version"
if: ${{ github.event_name == 'release' }}
uses: cssnr/update-json-value-action@v1
uses: cssnr/update-json-value-action@v2

- name: "Build"
run: |
npm run build

- name: "Upload to Actions"
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: artifacts
path: web-ext-artifacts/

- name: "Upload to Release"
if: ${{ github.event_name == 'release' }}
uses: svenstaro/upload-release-action@v2
uses: cssnr/upload-release-action@v1
with:
file: web-ext-artifacts/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
globs: web-ext-artifacts/*

- name: "Update Release Notes Action"
if: ${{ github.event_name == 'release' }}
Expand All @@ -59,10 +58,11 @@ jobs:
- name: "Package Changelog Action"
if: ${{ github.event_name == 'release' }}
continue-on-error: true
uses: cssnr/package-changelog-action@v1
uses: cssnr/package-changelog-action@v2

- name: "Send Failure Notification"
if: ${{ failure() && github.event_name == 'release' }}
uses: sarisia/actions-status-discord@v1
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
3 changes: 2 additions & 1 deletion .github/workflows/draft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
name: "Draft Release"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
contents: write

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Draft Release Action"
id: draft
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "PR Labeler"

on:
pull_request_target:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
labeler:
name: "Labeler"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
pull-requests: write
issues: write

steps:
- name: "Checkout Configs"
uses: actions/checkout@v6
with:
repository: cssnr/configs
ref: master
path: .configs
sparse-checkout-cone-mode: false
sparse-checkout: |
labels/**

- name: "Debug"
continue-on-error: true
run: |
echo "::group::labels.yaml"
cat .configs/labels/labels.yaml
echo "::endgroup::"

echo "::group::labeler.yaml"
cat .configs/labels/labeler.yaml
echo "::endgroup::"

- name: "Label Creator"
continue-on-error: true
uses: cssnr/label-creator-action@latest
with:
file: .configs/labels/labels.yaml

- name: "Labeler"
uses: actions/labeler@v6
with:
sync-labels: true
configuration-path: .configs/labels/labeler.yaml
43 changes: 16 additions & 27 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,51 +16,40 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Setup Node 22"
uses: actions/setup-node@v4
- name: "Setup Node 24"
uses: actions/setup-node@v6
with:
node-version: 22
#cache: npm
node-version: 24

- name: "Install"
id: install
run: |
npm install
npm ci

- name: "ESLint"
- name: "eslint"
if: ${{ !cancelled() }}
run: |
npm run lint

- name: "Prettier"
- name: "prettier"
if: ${{ !cancelled() }}
run: |
npm run prettier
npm run prettier:check

- name: "Yamllint"
- name: "yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
CONFIG: .github/yamllint.yaml
run: |
echo "::group::List Files"
yamllint -d '${{ env.CONFIG }}' --list-files .
yamllint -c "${{ env.CONFIG }}" --list-files .
echo "::endgroup::"
yamllint -d '${{ env.CONFIG }}' .
yamllint -c "${{ env.CONFIG }}" .

- name: "Actionlint"
- name: "actionlint"
if: ${{ !cancelled() }}
run: |
echo "::group::Download"
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
echo "loc: ${loc}"
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
echo "tag: ${tag}"
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
echo "url: ${url}"
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
file "${RUNNER_TEMP}/actionlint"
"${RUNNER_TEMP}/actionlint" --version
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
uses: cssnr/actionlint-action@v1
with:
shellcheck_opts: -e SC2129
11 changes: 5 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,16 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Setup Node 22"
uses: actions/setup-node@v4
- name: "Setup Node 24"
uses: actions/setup-node@v6
with:
node-version: 22
#cache: npm
node-version: 24

- name: "Install"
run: |
npm install
npm ci

- name: "Test"
id: test
Expand Down
7 changes: 7 additions & 0 deletions .github/yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: relaxed

ignore-from-file: .gitignore

rules:
line-length:
max: 119
17 changes: 3 additions & 14 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
# IDE
.idea/
.vscode/

# Tools
.ruff_cache/
.mypy_cache/
.pytest_cache/

# Build
dist/
node_modules/

# Files
.github/disabled
.github/pull_request_template.md
package-lock.json
*.html
10 changes: 5 additions & 5 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"printWidth": 90,
"overrides": [
{
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
"options": {
"singleQuote": false
"singleQuote": false,
"printWidth": 120
}
},
{
"files": ["**/*.mjs", "**/*.json", "**/*.yaml", "**/*.yml"],
"files": ["**/*.js", "**/*.mjs", "**/*.css", "**/*.scss"],
"options": {
"tabWidth": 2
"tabWidth": 4
}
}
]
Expand Down
Loading
Loading