Skip to content

Commit

Permalink
chore: apply prettier for yml files (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-cybo authored Jul 21, 2023
1 parent 6b8a390 commit e802f84
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 57 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body:
attributes:
label: Target Version
placeholder: e.g. vX.Y.Z
description: Which version of cli-kintone do you want to report a bug for?
description: Which version of cli-kintone do you want to report a bug for?
validations:
required: true
- type: textarea
Expand All @@ -29,7 +29,7 @@ body:
description: |
Please provide [minimum reproduction](https://stackoverflow.com/help/minimal-reproducible-example) steps of the bug.
If you have a reproduction repository, [GitHub Gist](https://gist.github.com/) snippet, or some external pages, please share the links.
:warning: DO NOT SUBMIT CONFIDENTIAL INFORMATION SUCH AS YOUR SUBDOMAIN AND PASSWORD
placeholder: |
1. Prepare a Kintone App with the following fields...
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
contact_links:
- name: 🇯🇵 日本語はこちら
url: https://github.com/kintone/js-sdk-ja
about: 日本語でのバグ報告・機能提案はこちら
- name: 🇯🇵 日本語はこちら
url: https://github.com/kintone/js-sdk-ja
about: 日本語でのバグ報告・機能提案はこちら
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- main
- 'renovate/**'
- "renovate/**"
pull_request:

jobs:
Expand All @@ -18,7 +18,7 @@ jobs:

- uses: jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 # renovate: tag=v1.1.4
with:
version: '4.x'
version: "4.x"
github_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
Expand All @@ -29,11 +29,11 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
node-version: "16"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile
- run: pnpm build:artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
node-version: "16"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Setup Licensed
uses: jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 # renovate: tag=v1.1.4
with:
version: '4.x'
version: "4.x"
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Check out repository
Expand All @@ -62,10 +62,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Check licenses
run: |
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@

name: lint

on:
push:
branches:
- main
- 'renovate/**'
- "renovate/**"
pull_request:

jobs:
lint:
name: Node.js ubuntu-latest 16.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8.6.5
- uses: pnpm/action-setup@v2
with:
version: 8.6.5

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm lint
- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm lint
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- uses: jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 # renovate: tag=v1.1.4
with:
version: '4.x'
version: "4.x"
github_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
Expand All @@ -61,11 +61,11 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
node-version: "16"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile
- run: pnpm build:artifacts
- name: Upload executables
env:
Expand Down
36 changes: 17 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@

name: test

on:
push:
branches:
- main
- 'renovate/**'
- "renovate/**"
pull_request:

jobs:
test:

name: Node.js ${{ matrix.os }} ${{ matrix.node-version }}
runs-on: ${{ matrix.os }}

Expand All @@ -20,19 +18,19 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8.6.5

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test:ci
- run: git config --global core.autocrlf false
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8.6.5

- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test:ci
2 changes: 1 addition & 1 deletion .github/workflows/yamory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: "16"

- name: download and validate Yamory script
working-directory: /tmp
Expand Down
2 changes: 1 addition & 1 deletion .licensed.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# See for https://github.com/github/licensed/blob/master/docs/configuration.md for more details.
# If not set, defaults to the directory name of `source_path`
name: 'cli-kintone'
name: "cli-kintone"

# Sources of metadata
sources:
Expand Down
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
lib
dist
coverage
.licenses/

# Ignore all HTML files:
*.html

# Ignore CHANGELOG.md (because it is auto generated)
# Ignore tsconfig file
tsconfig.json

# Ignore auto generated files
pnpm-lock.yaml
CHANGELOG.md
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"test:e2e": "cucumber-js",
"lint": "run-p -l lint:*",
"lint:eslint": "eslint --ext .js,.mjs,.cjs,.ts,.mts,.cts ./",
"lint:md": "prettier --check ./**/*.md",
"lint:prettier": "prettier --check '**/*.{json,md,yml,yaml}'",
"fix": "run-p fix:*",
"fix:lint": "run-s 'lint:eslint --fix'",
"fix:md": "run-s 'lint:md --write'",
"fix:prettier": "run-s 'lint:prettier --write'",
"clean": "rimraf lib bin artifacts dist"
},
"repository": {
Expand Down

0 comments on commit e802f84

Please sign in to comment.