Skip to content

refactor: deprecate index.bzl #346

refactor: deprecate index.bzl

refactor: deprecate index.bzl #346

Workflow file for this run

name: Test
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node_version: [16.x, 18.x, 20.x]
protoc_version: [3.x]
folder:
- '.'
- 'examples/grpc'
- 'examples/pure'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{matrix.node_version}}
- uses: arduino/setup-protoc@v1
with:
version: ${{matrix.protoc_version}}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Mount bazel caches
uses: actions/cache@v3
with:
path: |
"~/.cache/bazel"
"~/.cache/bazel-repo"
key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE') }}
restore-keys: bazel-cache-
- run: |
type .github/workflows/ci.bazelrc >> user.bazelrc
type .github/workflows/ci.windows.bazelrc >> user.bazelrc
Add-Content user.bazelrc "`ntest --test_tag_filters=-no-${{ matrix.os }}"
if: ${{ matrix.os == 'windows-latest' && matrix.folder == '.' }}
- run: |
cat .github/workflows/ci.bazelrc >> user.bazelrc
cat .github/workflows/ci.nix.bazelrc >> user.bazelrc
echo "test --test_tag_filters=-no-${{ matrix.os }}" >> user.bazelrc
if: ${{ matrix.os != 'windows-latest' && matrix.folder == '.' }}
- run: npm ci
working-directory: ${{ matrix.folder }}
- run: npm test
working-directory: ${{ matrix.folder }}