-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: make build success if eslint, prettier and 'cdk synth' are all…
… passed (#12) * ci: fail build if eslint or prettier is not applied * build: run prettier on all supported extensions when pre-commit * chore: add .prettierignore to ignore term files * build: build all cdk apps when 'npm run synth:dev' * style: apply prettier into whole repository * chore: chmod 644 * ci: disable git core.autocrlf in Windows CI environment * build: fix format in dependabot.yml Co-authored-by: Yukitaka Ohmura <[email protected]>
- Loading branch information
Showing
12 changed files
with
71 additions
and
66 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 |
---|---|---|
@@ -1,16 +1,9 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
} | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": {} | ||
} |
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,21 +1,19 @@ | ||
version: 2 | ||
updates: | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "weekly" | ||
interval: 'weekly' | ||
|
||
# Maintain dependencies for npm | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: "weekly" | ||
interval: 'weekly' | ||
|
||
# Maintain dependencies for docker | ||
- package-ecosystem: "docker" | ||
directory: "/usecases/guest-webapp-sample/container/sample-ecs-app" | ||
- package-ecosystem: 'docker' | ||
directory: '/usecases/guest-webapp-sample/container/sample-ecs-app' | ||
schedule: | ||
interval: "weekly" | ||
|
||
interval: 'weekly' |
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
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,39 +1,40 @@ | ||
default: | ||
before_script: | ||
- npm i -g npm | ||
- echo node $(node --version) | ||
- echo npm $(npm --version) | ||
- npm ci --cache .npm --prefer-offline | ||
cache: | ||
key: | ||
files: | ||
- package-lock.json | ||
prefix: ${CI_PROJECT_NAME} | ||
paths: | ||
- .npm/ | ||
before_script: | ||
- npm i -g npm | ||
- echo node $(node --version) | ||
- echo npm $(npm --version) | ||
- npm ci --cache .npm --prefer-offline | ||
cache: | ||
key: | ||
files: | ||
- package-lock.json | ||
prefix: ${CI_PROJECT_NAME} | ||
paths: | ||
- .npm/ | ||
|
||
variables: | ||
# Disable AWS profile in GitLab Runner to avoid unintended access during `cdk synth`. | ||
# If you use your AWS account to deploy CDK apps, you should remove this, then set secret varibales in GitLab CI/CD settings from web. | ||
AWS_PROFILE: "" | ||
AWS_DEFAULT_REGION: "" | ||
AWS_ACCESS_KEY_ID: "" | ||
AWS_SECRET_ACCESS_KEY: "" | ||
# Disable AWS profile in GitLab Runner to avoid unintended access during `cdk synth`. | ||
# If you use your AWS account to deploy CDK apps, you should remove this, then set secret varibales in GitLab CI/CD settings from web. | ||
AWS_PROFILE: '' | ||
AWS_DEFAULT_REGION: '' | ||
AWS_ACCESS_KEY_ID: '' | ||
AWS_SECRET_ACCESS_KEY: '' | ||
|
||
.node-build: &node-build | ||
- npm run lint | ||
- npm run build --workspaces | ||
- npm run test --workspaces | ||
- npm run synth:dev --workspaces | ||
- npm run lint:ci | ||
- npm run format:ci | ||
- npm run build --workspaces | ||
- npm run test --workspaces | ||
- npm run synth:dev --workspaces | ||
|
||
build-node14: | ||
stage: build | ||
image: node:14 | ||
script: | ||
- *node-build | ||
stage: build | ||
image: node:14 | ||
script: | ||
- *node-build | ||
|
||
build-node16: | ||
stage: build | ||
image: node:16 | ||
script: | ||
- *node-build | ||
stage: build | ||
image: node:16 | ||
script: | ||
- *node-build |
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,5 @@ | ||
LICENSE | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
.github/PULL_REQUEST_TEMPLATE.md |
Empty file.
Empty file.
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
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
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
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
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