Skip to content
Merged
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
35 changes: 15 additions & 20 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "Lint"

on:
workflow_dispatch:
pull_request:
push:
branches: [master]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -13,30 +13,30 @@ concurrency:
jobs:
lint:
name: "Lint"
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
contents: read
pull-requests: write
statuses: write
checks: write

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

- name: "Debug event.json"
if: ${{ !github.event.act }}
continue-on-error: true
run: cat "${GITHUB_EVENT_PATH}"

- name: "Debug CTX github"
if: ${{ !github.event.act }}
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"

- name: "Debug Environment"
if: ${{ !github.event.act }}
continue-on-error: true
run: env

Expand All @@ -48,7 +48,7 @@ jobs:
echo "::endgroup::"
npx prettier --check .

- name: "yamllint"
- name: "Yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
Expand All @@ -58,7 +58,7 @@ jobs:
echo "::endgroup::"
yamllint -d '${{ env.CONFIG }}' .

- name: "actionlint"
- name: "Actionlint"
if: ${{ !cancelled() }}
run: |
echo "::group::Download"
Expand All @@ -74,17 +74,12 @@ jobs:
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=

#- name: "hadolint"
# if: ${{ !cancelled() }}
# uses: hadolint/hadolint-action@v3.3.0
# with:
# dockerfile: Dockerfile

#- name: "Vale"
#- name: "Verify action.yml"
# if: ${{ !cancelled() }}
# uses: errata-ai/vale-action@v2.1.1
# run: |
# yq -e '.runs.main | test("^dist/")' action.yml

#- name: "SonarQube"
# uses: SonarSource/sonarqube-scan-action@v4
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
#- name: "ESLint Annotate"
# if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
# continue-on-error: true
# uses: ataylorme/eslint-annotate-action@d57a1193d4c59cbfbf3f86c271f42612f9dbd9e9 # 3.0.0
2 changes: 1 addition & 1 deletion .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: echo "$GITHUB_CTX"

- name: "Checkout Pull"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -39,6 +39,10 @@ jobs:
tree .
echo "::endgroup::"

#- name: "NPM Outdated Check"
# continue-on-error: true
# uses: cssnr/npm-outdated-action@latest

- name: "Actions Up"
continue-on-error: true
uses: cssnr/actions-up-action@latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
location: tail
type: "actions"

#- name: "Package Changelog Action"
# continue-on-error: true
# uses: cssnr/package-changelog-action@latest

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@b8381b25576cb341b2af39926ab42c5056cc44ed # v1.15.5
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
.ruff_cache/
.mypy_cache/
.pytest_cache/
eslint_report.json

# Build
dist/
node_modules/
.github/disabled/

# Files
.github/PULL_REQUEST_TEMPLATE/
.github/pull_request_template.md
src/output
Loading