-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from loeffel-io/feature/loeffel-io/v2
v2
- Loading branch information
Showing
62 changed files
with
1,119 additions
and
741 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
build --stamp --workspace_status_command="bash scripts/bazel/workspace_status.sh" |
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 @@ | ||
6.2.0 |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI | ||
on: [ push ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: gcr.io/bazel-public/bazel@sha256:7318b89458263c20e9b98ac7864769ba68bb86ff2dd33980b42ee33a1591df17 # v6.2.0 | ||
options: --user root # ref: https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GOOGLE_BUCKET: https://storage.googleapis.com/ls-lint-bazel | ||
steps: | ||
- run: set -eu | ||
- uses: actions/checkout@v3 | ||
- uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }} | ||
- run: bazel test --remote_cache=$GOOGLE_BUCKET --google_default_credentials //... | ||
- run: bazel build --remote_cache=$GOOGLE_BUCKET --google_default_credentials //... | ||
- run: bazel run //cmd/ls_lint:ls-lint -- --config ${PWD}/.ls-lint.yml --workdir ${PWD} | ||
|
||
release: | ||
needs: build | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
container: | ||
image: gcr.io/bazel-public/bazel@sha256:7318b89458263c20e9b98ac7864769ba68bb86ff2dd33980b42ee33a1591df17 # v6.2.0 | ||
options: --user root # ref: https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
STABLE_GIT_TAG: ${{ github.ref_name }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GOOGLE_BUCKET: https://storage.googleapis.com/ls-lint-bazel | ||
steps: | ||
- run: set -eu && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs | ||
- uses: actions/checkout@v3 | ||
- uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }} | ||
- run: bazel run --remote_cache=$GOOGLE_BUCKET --google_default_credentials //deployments/github:ls_lint_publish | ||
- run: bazel build --remote_cache=$GOOGLE_BUCKET --google_default_credentials //deployments/npm:ls_lint | ||
- run: (cd bazel-bin/deployments/npm/ls_lint && npm publish --tag beta --no-git-checks) # workaround: https://bazelbuild.slack.com/archives/CEZUUKQ6P/p1667995025343689 # --dry-run |
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,8 +1,19 @@ | ||
ls: | ||
.dir: kebab-case | ||
.dir: snake_case | ||
.bzl: snake_case | ||
.sh: snake_case | ||
.bazel: SCREAMING_SNAKE_CASE | ||
.go: snake_case | ||
.yaml: snake_case | ||
.js: snake_case | ||
|
||
ignore: | ||
- .git | ||
- .idea | ||
- .github | ||
- .git | ||
- genhtml | ||
- bazel-bin | ||
- bazel-out | ||
- bazel-ls-lint | ||
- bazel-testlogs | ||
- deployments/npm/pnpm-lock.yaml |
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,46 @@ | ||
load("@bazel_gazelle//:def.bzl", "gazelle") | ||
load("@io_bazel_rules_go//go:def.bzl", "TOOLS_NOGO", "nogo") | ||
|
||
# gazelle:prefix github.com/loeffel-io/ls-lint/v2 | ||
gazelle(name = "gazelle") | ||
|
||
config_setting( | ||
name = "darwin_arm64", | ||
constraint_values = [ | ||
"@platforms//os:osx", | ||
"@platforms//cpu:arm64", | ||
], | ||
) | ||
|
||
nogo( | ||
name = "nogo", | ||
config = ":nogo.json", | ||
visibility = ["//visibility:public"], | ||
deps = TOOLS_NOGO + [], | ||
) | ||
|
||
exports_files( | ||
srcs = [ | ||
"LICENSE", | ||
"README.md", | ||
], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
alias( | ||
name = "gh", | ||
actual = select({ | ||
":darwin_arm64": "@com_github_cli_cli_darwin_arm64//:bin/gh", | ||
"//conditions:default": "@com_github_cli_cli_linux_amd64//:bin/gh", | ||
}), | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
alias( | ||
name = "coreutils", | ||
actual = select({ | ||
":darwin_arm64": "@com_github_uutils_coreutils_darwin_arm64//:coreutils", | ||
"//conditions:default": "@com_github_uutils_coreutils_linux_amd64//:coreutils", | ||
}), | ||
visibility = ["//visibility:public"], | ||
) |
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
Oops, something went wrong.