diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2d45268 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +--- +name: Build + +on: + pull_request: + branches: + - '**' + push: + branches: + - '**' + tags: + - 'v*' + +permissions: + contents: read + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + - uses: coursier/cache-action@v6 + - uses: coursier/setup-action@v1 + with: + jvm: temurin:21 + apps: sbt + - name: Execute tests + shell: bash + run: | + sbt +test diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml new file mode 100644 index 0000000..9ad89ad --- /dev/null +++ b/.github/workflows/deps.yml @@ -0,0 +1,27 @@ +--- +name: Dependency Submission + +on: + push: + branches: + - 'main' + +permissions: + contents: write + +jobs: + build: + name: Submit Dependencies + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: coursier/cache-action@v6 + - uses: coursier/setup-action@v1 + with: + jvm: temurin:21 + apps: sbt + - uses: scalacenter/sbt-dependency-submission@v2 + with: + configs-ignore: > + scala-tool + compile-internal diff --git a/README.md b/README.md index fad8123..8eba3dc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Spot: Spark-OpenTelemetry +[![Build](https://github.com/godatadriven/spot/actions/workflows/ci.yml/badge.svg)](https://github.com/godatadriven/spot/actions/workflows/ci.yml) This package connects [Apache Sparkā„¢][sp-home] to [OpenTelemetry][ot-home].