From df6f7bdba978d6565ad78e9f86d9cd31dfac9f78 Mon Sep 17 00:00:00 2001 From: Josue Alexander Ibarra <1480657+ibarrajo@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:39:12 -0700 Subject: [PATCH] [CDNC-8152] Action to build and test samples (#84) * add github action to build and test samples * add build badge to README.md --- .github/workflows/build.yml | 16 ++++++++++++++++ README.md | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..65f4201 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: Build and test cadence-samples +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '1.22.x' + - name: Build and Test + run: make + diff --git a/README.md b/README.md index f0e9db8..1b35e36 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# Cadence Samples +# Cadence Samples ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/uber-common/cadence-samples/build.yml) + These are some samples to demostrate various capabilities of Cadence client and server. You can learn more about cadence at: * Cadence: https://github.com/uber/cadence * Cadence Client: https://github.com/uber-go/cadence-client