Skip to content

Commit 620d033

Browse files
authored
Add Asset Size Badge (#48)
1 parent c99b15d commit 620d033

File tree

17 files changed

+699
-788
lines changed

17 files changed

+699
-788
lines changed

.github/actionlint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
paths:
2+
.github/workflows/**/*.{yml,yaml}:
3+
ignore:
4+
- '"inputs" section is alias node but mapping node is expected'
5+
- '"paths" section must be sequence node but got alias node with "" tag'
6+
- '"paths-ignore" section must be sequence node but got alias node with "" tag'

.github/disabled/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: "Checkout"
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@v6
2525

2626
- name: "Docker Login"
2727
uses: docker/login-action@v3

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
echo "env.dev: ${{ env.dev }}"
4444
4545
- name: "Checkout"
46-
uses: actions/checkout@v5
46+
uses: actions/checkout@v6
4747

4848
- name: "Docker Login"
4949
uses: docker/login-action@v3
@@ -63,7 +63,7 @@ jobs:
6363
- name: "Update Version Tags"
6464
if: ${{ !env.dev }}
6565
id: version
66-
uses: cssnr/update-version-tags-action@v1
66+
uses: cssnr/update-version-tags-action@v2
6767
with:
6868
prefix: ""
6969
tags: |
@@ -79,7 +79,7 @@ jobs:
7979
8080
- name: "Generate Docker Tags"
8181
id: tags
82-
uses: cssnr/docker-tags-action@v1
82+
uses: cssnr/docker-tags-action@v2
8383
with:
8484
images: "ghcr.io/${{ github.repository }}"
8585
tags: |
@@ -111,6 +111,6 @@ jobs:
111111
112112
- name: "Send Failure Notification"
113113
if: ${{ failure() }}
114-
uses: sarisia/actions-status-discord@v1
114+
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
115115
with:
116116
webhook: ${{ secrets.DISCORD_WEBHOOK }}

.github/workflows/draft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: "Checkout"
25-
uses: actions/checkout@v5
25+
uses: actions/checkout@v6
2626

2727
- name: "Draft Release Action"
2828
id: draft

.github/workflows/labeler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: "Checkout Configs"
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@v6
1919
with:
2020
repository: cssnr/configs
2121
ref: master

.github/workflows/lint.yaml

Lines changed: 50 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,54 @@ jobs:
2222

2323
steps:
2424
- name: "Checkout"
25-
uses: actions/checkout@v5
25+
uses: actions/checkout@v6
26+
27+
- name: "yamllint"
28+
if: ${{ !cancelled() }}
29+
env:
30+
CONFIG: .github/yamllint.yaml
31+
run: |
32+
echo "::group::List Files"
33+
yamllint -c "${{ env.CONFIG }}" --list-files .
34+
echo "::endgroup::"
35+
yamllint -c "${{ env.CONFIG }}" .
36+
37+
- name: "actionlint"
38+
if: ${{ !cancelled() }}
39+
uses: cssnr/actionlint-action@v1
40+
with:
41+
shellcheck_opts: -e SC2129
42+
43+
- name: "hadolint"
44+
if: ${{ !cancelled() }}
45+
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
46+
with:
47+
dockerfile: Dockerfile
48+
ignore: "DL3018"
49+
50+
- name: "ShellCheck"
51+
if: ${{ !cancelled() }}
52+
uses: ludeeus/action-shellcheck@master
53+
env:
54+
SHELLCHECK_OPTS: -x
55+
56+
#- name: "ESLint Annotate"
57+
# if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
58+
# continue-on-error: true
59+
# uses: ataylorme/eslint-annotate-action@v3
60+
61+
npm-lint:
62+
name: "NPM Lint"
63+
runs-on: ubuntu-latest
64+
timeout-minutes: 5
65+
66+
permissions:
67+
pull-requests: write
68+
checks: write
69+
70+
steps:
71+
- name: "Checkout"
72+
uses: actions/checkout@v6
2673

2774
- name: "Setup Node"
2875
uses: actions/setup-node@v6
@@ -34,52 +81,13 @@ jobs:
3481
run: |
3582
npm ci
3683
37-
- name: "ESLint"
84+
- name: "eslint"
3885
id: eslint
3986
if: ${{ !cancelled() }}
4087
run: |
41-
#npm run lint:report
4288
npm run lint
4389
44-
- name: "Prettier"
90+
- name: "prettier"
4591
if: ${{ !cancelled() }}
4692
run: |
4793
npm run prettier:check
48-
49-
- name: "Yamllint"
50-
if: ${{ !cancelled() }}
51-
env:
52-
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
53-
run: |
54-
echo "::group::List Files"
55-
yamllint -d '${{ env.CONFIG }}' --list-files .
56-
echo "::endgroup::"
57-
yamllint -d '${{ env.CONFIG }}' .
58-
59-
- name: "Actionlint"
60-
if: ${{ !cancelled() }}
61-
run: |
62-
echo "::group::Download"
63-
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
64-
echo "loc: ${loc}"
65-
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
66-
echo "tag: ${tag}"
67-
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
68-
echo "url: ${url}"
69-
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
70-
file "${RUNNER_TEMP}/actionlint"
71-
"${RUNNER_TEMP}/actionlint" --version
72-
echo "::endgroup::"
73-
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
74-
75-
- name: "Hadolint"
76-
if: ${{ !cancelled() }}
77-
uses: hadolint/hadolint-action@v3.3.0
78-
with:
79-
dockerfile: Dockerfile
80-
ignore: "DL3018"
81-
82-
#- name: "ESLint Annotate"
83-
# if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
84-
# continue-on-error: true
85-
# uses: ataylorme/eslint-annotate-action@v3

.github/workflows/pull.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: "Checkout Pull"
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@v6
2222
with:
2323
ref: ${{ github.event.pull_request.head.sha }}
2424

.github/yamllint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extends: relaxed
2+
3+
ignore-from-file: .gitignore
4+
5+
rules:
6+
line-length:
7+
max: 119

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
# Generic
12
.idea/
23
*.iml
34
.vscode/
5+
.*cache*
46
node_modules/
5-
eslint_report.json
7+
build/
8+
dist/
9+
out/
10+
*.dll
11+
*.exe
612
.env
713
.secrets
814
.vars
915
settings.env
16+
eslint_report.json

.prettierignore

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# IDE
2-
.idea/
3-
.vscode/
4-
5-
# Tools
6-
.ruff_cache/
7-
.mypy_cache/
8-
.pytest_cache/
9-
eslint_report.json
10-
11-
# Build
12-
dist/
13-
node_modules/
14-
.github/disabled/
15-
16-
# Files
1+
.github/disabled
172
.github/pull_request_template.md
3+
package-lock.json

0 commit comments

Comments
 (0)