From 50daaacc6a5267c7fce0c79a8ab8bd650d7aea99 Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Mon, 24 Jul 2023 19:47:41 -0400 Subject: [PATCH] ci: build test (#59) --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ bin/build-all.sh | 2 ++ 2 files changed, 30 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 00000000..1cdfd4e7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: ci + +on: + pull_request: + push: + branches: + - main + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: 11 + distribution: zulu + - name: build + run: ./bin/build-all.sh diff --git a/bin/build-all.sh b/bin/build-all.sh index 3b210744..7a9145e4 100755 --- a/bin/build-all.sh +++ b/bin/build-all.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + d="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" cd $d/../monitoring