Skip to content

Add GitHub actions presubmit checks #2

Add GitHub actions presubmit checks

Add GitHub actions presubmit checks #2

Workflow file for this run

name: Presubmit
on:
push:
branches:
- 'master'
pull_request:
jobs:
test-matrix:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Configure
run: |
echo "build --compilation_mode=opt" > $HOME/.bazelrc
echo "build --disk_cache=$HOME/.cache/bazel/" >> $HOME/.bazelrc
echo "build --announce_rc" >> $HOME/.bazelrc
echo "build --keep_going" >> $HOME/.bazelrc
echo "build --strategy=Javac=worker" >> $HOME/.bazelrc
echo "build --build_tag_filters=-no$TRAVIS_OS_NAME" >> $HOME/.bazelrc
echo "test --test_tag_filters=-no$TRAVIS_OS_NAME" >> $HOME/.bazelrc
echo "test --test_output=errors" >> $HOME/.bazelrc
echo "test --test_verbose_timeout_warnings" >> $HOME/.bazelrc