diff --git a/.bazelversion b/.bazelversion index 8a30e8f..19b860c 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -5.4.0 +6.4.0 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 56eb1a4..4ed2a14 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,3 +33,24 @@ jobs: # Bazelisk will download bazel to here XDG_CACHE_HOME: ~/.cache/bazel-repo run: bazel test //... + test_bzlmod: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Mount bazel caches + uses: actions/cache@v2 + with: + path: | + "~/.cache/bazel" + "~/.cache/bazel-repo" + key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE', '**/*.js') }} + restore-keys: bazel-cache- + - name: bazel test //... --enable_bzlmod + env: + # Bazelisk will download bazel to here + XDG_CACHE_HOME: ~/.cache/bazel-repo + run: bazel test //... --enable_bzlmod diff --git a/.github/workflows/workspace_snippet.sh b/.github/workflows/workspace_snippet.sh index 3b90d07..b768e25 100755 --- a/.github/workflows/workspace_snippet.sh +++ b/.github/workflows/workspace_snippet.sh @@ -8,8 +8,22 @@ NAME=rules_nodejs_gazelle COMMIT=$(git rev-parse HEAD) PREFIX=${NAME}-${COMMIT} SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${COMMIT} | gzip | shasum -a 256 | awk '{print $1}') +INTEGRITY=$(git archive --format=tar --prefix=${PREFIX}/ ${COMMIT} | gzip | openssl dgst -sha256 -binary | openssl base64 -A) + +cat <