Skip to content

Commit

Permalink
Attempt to add CI workflow (attempt 1 of X)
Browse files Browse the repository at this point in the history
  • Loading branch information
Silic0nS0ldier committed Dec 6, 2023
1 parent 581e8d1 commit 8e273ea
Show file tree
Hide file tree
Showing 13 changed files with 3,539 additions and 895 deletions.
10 changes: 10 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ query --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
build --@aspect_rules_ts//ts:default_to_tsc_transpiler
fetch --@aspect_rules_ts//ts:default_to_tsc_transpiler
query --@aspect_rules_ts//ts:default_to_tsc_transpiler

# Use use home directory instead of /private/var/tmp/_bazel_$USER/...
startup --output_user_root=~/.bazel

# Shared disk cache
build --disk_cache=~/.bazel/action-cache
build --repository_cache=~/.bazel/repo-cache

# Contain Bazel helper symlinks under .bazel/
build --symlink_prefix=.bazel/
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0-pre.20230917.3
7.0.0rc6
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Continuous Integration
on:
# Main branch updated
push:
#branches:
# - main
# Pull request
pull_request:
types:
# Newly opened
- opened
# Updated (excludes change of base branch)
- synchronize

jobs:
test:
# Development of ruleset proper only supported on macOS and Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
- run: bazel test //...
e2e:
strategy:
# TODO Cover macOS and Windows
matrix:
scenario:
- bazel_6_litmus
- bazel_6_litmus_workspace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel-e2e-${{ matrix.scenario }}
- run: cd e2e/${{ matrix.scenario }}
- run: bazel test //...

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.bazel/
13 changes: 6 additions & 7 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ module(
)

bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True)
bazel_dep(name = "bazel_skylib", version = "1.4.2", dev_dependency = False)
bazel_dep(name = "aspect_bazel_lib", version = "1.35.0", dev_dependency = False)
bazel_dep(name = "platforms", version = "0.0.4", dev_dependency = False)
bazel_dep(name = "aspect_rules_ts", version = "2.0.0-rc1", dev_dependency = True)
bazel_dep(name = "aspect_rules_js", version = "1.32.6", dev_dependency = True)
# TODO v6 is now out
bazel_dep(name = "rules_nodejs", version = "5.8.2", dev_dependency = True)
bazel_dep(name = "bazel_skylib", version = "1.5.0", dev_dependency = False)
bazel_dep(name = "aspect_bazel_lib", version = "1.39.0", dev_dependency = False)
bazel_dep(name = "platforms", version = "0.0.8", dev_dependency = False)
bazel_dep(name = "aspect_rules_ts", version = "2.1.0", dev_dependency = True)
bazel_dep(name = "aspect_rules_js", version = "1.34.1", dev_dependency = True)
bazel_dep(name = "rules_nodejs", version = "6.0.2", dev_dependency = True)
bazel_dep(name = "aspect_rules_rollup", version = "1.0.0", dev_dependency = True)

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)
Expand Down
Loading

0 comments on commit 8e273ea

Please sign in to comment.