rename module from com_github_benchsci_rules_nodejs_gazelle to rules_… #141
Workflow file for this 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
name: CI | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
# 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 //... | |
env: | |
# 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 |