Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Cargo output directory
target/
bazel/proto/
examples/large_bes
examples/large_bes
examples/lint
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.0.1
9.0.0
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI (Github Hosted Runners)

on:
push:
branches: [main]
pull_request:

permissions:
pull-requests: write

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.88.0"

- name: Cache Cargo artifacts
uses: Swatinem/rust-cache@v2

- name: Build aspect-cli
run: cargo build -p aspect-cli

- name: Run aspect lint
run: env && ../../target/debug/aspect-cli lint
working-directory: examples/lint
env:
ASPECT_DEBUG: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 0 additions & 9 deletions MODULE.aspect
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,4 @@ axl_local_dep(
auto_use_tasks = True,
)

axl_archive_dep(
name = "aspect_rules_lint",
urls = ["https://github.com/aspect-build/rules_lint/archive/65525d871f677071877d3ea1ec096499ff7dd147.tar.gz"],
integrity = "sha512-TGcxutWr8FwxrK3G+uthbEpuYM2oOVpHPOvaVPzLLuHkfPY0jn/GWFp9myQeFzDFsRZ4ilT0jAWfGZhTk/nesQ== sha512-IKsrPMgaNuzHAkHzyKbJexzt8ObepFhtzyurirppI1XNHgMKrLMuPXXVFeOpoVws5o2EMUSY4ZisCz9SLFKbhg==",
strip_prefix = "rules_lint-65525d871f677071877d3ea1ec096499ff7dd147",
auto_use_tasks = True,
dev = True,
)

use_task(".aspect/user/user-task-manual.axl", "user_task_manual")
13 changes: 13 additions & 0 deletions crates/aspect-cli/src/builtins/aspect/MODULE.aspect
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ use_config("config/builtins.axl", "configure_builtins")

# Configure artifact uploads
use_config("config/artifacts.axl", "configure_artifacts")

# Configure rules_lint if its declared by user
use_config(
"config/lint.axl",
"configure_rules_lint",
requires = ["aspect_rules_lint"]
)

use_config(
"config/nolint.axl",
"configure_dummy_lint",
conflicts = ["aspect_rules_lint"]
)
Loading
Loading