aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/run-all-tests.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/run-all-tests.yml b/.github/workflows/run-all-tests.yml
new file mode 100644
index 00000000..6dc6cf6a
--- /dev/null
+++ b/.github/workflows/run-all-tests.yml
@@ -0,0 +1,34 @@
+name: Build all targets and run all tests
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+ workflow_dispatch:
+
+jobs:
+
+ build_and_test:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+
+ - name: Mount bazel cache
+ uses: actions/cache@v2
+ with:
+ path: "/home/runner/.cache/bazel"
+ key: bazel
+
+ - name: Build
+ run: ./bazelisk-linux-amd64 build -c opt //...
+
+ - name: Test
+ run: ./bazelisk-linux-amd64 test -c opt //...