Skip to content

Commit

Permalink
Create workflow to exercise bazel build (#1079)
Browse files Browse the repository at this point in the history
* Create workflow to exercise bazel build
  • Loading branch information
dominichamon authored Dec 22, 2020
1 parent d8254bb commit a6d08ae
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: bazel

on:
push: {}
pull_request: {}

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: mount bazel cache
uses: actions/cache@v1
with:
path: "/home/runner/.cache/bazel"
key: bazel

- name: install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: build
run: |
"${GITHUB_WORKSPACE}/bin/bazel" build //...
- name: test
run: |
"${GITHUB_WORKSPACE}/bin/bazel" test //test/...

0 comments on commit a6d08ae

Please sign in to comment.