aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFabian Meumertzheim <meumertzheim@code-intelligence.com>2021-02-01 14:10:26 +0100
committerFabian Meumertzheim <meumertzheim@code-intelligence.com>2021-02-09 17:20:51 +0100
commitbc6a1a69d79f29e3ad97309eac5deb84218bd436 (patch)
treeb401439c32162d9ad62cf7d582454254149d102a /.github
parent5246e52be3bf4427791000355cbef86626b43eca (diff)
downloadjazzer-api-bc6a1a69d79f29e3ad97309eac5deb84218bd436.tar.gz
Add basic CI action
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 //...