Skip to content

refactor: deprecate index.bzl #338

refactor: deprecate index.bzl

refactor: deprecate index.bzl #338

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, macos-latest, windows-latest]
node_version: [16.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
if: ${{ matrix.os == 'windows-latest' }}
- run: |
cat .github/workflows/ci.bazelrc >> user.bazelrc
cat .github/workflows/ci.nix.bazelrc >> user.bazelrc
if: ${{ matrix.os != 'windows-latest' }}
- name: install dependencies
run: npm ci
working-directory: ${{ matrix.folder }}
- name: test
run: npm test -- --test_tag_filters=-no-${{ matrix.os }}
working-directory: ${{ matrix.folder }}