Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Enhance workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
184 additions
and
149 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
@@ -0,0 +1,2 @@ | ||
/coverage | ||
/node_modules |
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
BIN
+565 Bytes
(110%)
.github/setup-buildx-action.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
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
@@ -1,42 +1,67 @@ | ||
variable "NODE_VERSION" { | ||
default = "12" | ||
} | ||
|
||
target "node-version" { | ||
args = { | ||
NODE_VERSION = NODE_VERSION | ||
} | ||
} | ||
|
||
group "default" { | ||
targets = ["build"] | ||
} | ||
|
||
group "pre-checkin" { | ||
targets = ["update-yarn", "format", "build"] | ||
targets = ["vendor-update", "format", "build"] | ||
} | ||
|
||
group "validate" { | ||
targets = ["validate-format", "validate-build", "validate-yarn"] | ||
} | ||
|
||
target "update-yarn" { | ||
target = "update-yarn" | ||
output = ["."] | ||
targets = ["format-validate", "build-validate", "vendor-validate"] | ||
} | ||
|
||
target "build" { | ||
target = "dist" | ||
inherits = ["node-version"] | ||
dockerfile = "./hack/build.Dockerfile" | ||
target = "build-update" | ||
output = ["."] | ||
} | ||
|
||
target "test" { | ||
target = "test" | ||
target "build-validate" { | ||
inherits = ["node-version"] | ||
dockerfile = "./hack/build.Dockerfile" | ||
target = "build-validate" | ||
} | ||
|
||
target "format" { | ||
target = "format" | ||
inherits = ["node-version"] | ||
dockerfile = "./hack/build.Dockerfile" | ||
target = "format-update" | ||
output = ["."] | ||
} | ||
|
||
target "validate-format" { | ||
target = "validate-format" | ||
target "format-validate" { | ||
inherits = ["node-version"] | ||
dockerfile = "./hack/build.Dockerfile" | ||
target = "format-validate" | ||
} | ||
|
||
target "vendor-update" { | ||
inherits = ["node-version"] | ||
dockerfile = "./hack/vendor.Dockerfile" | ||
target = "update" | ||
output = ["."] | ||
} | ||
|
||
target "validate-build" { | ||
target = "validate-build" | ||
target "vendor-validate" { | ||
inherits = ["node-version"] | ||
dockerfile = "./hack/vendor.Dockerfile" | ||
target = "validate" | ||
} | ||
|
||
target "validate-yarn" { | ||
target = "validate-yarn" | ||
} | ||
target "test" { | ||
inherits = ["node-version"] | ||
dockerfile = "./hack/test.Dockerfile" | ||
target = "test-coverage" | ||
output = ["./coverage"] | ||
} |
Oops, something went wrong.