From 79c147c01717d38026e75edf1f468d3ae96fc9df Mon Sep 17 00:00:00 2001 From: Yuwei Ba Date: Sat, 29 Jul 2023 23:05:55 +1000 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..c522c34ef --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: Run Build and Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: bazelbuild/setup-bazelisk@v2 + - name: Mount bazel cache # Optional + uses: actions/cache@v3 + with: + path: "~/.cache/bazel" + key: bazel + - run: bazel test //...