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