Skip to content

Add tests

Add tests #7

Workflow file for this run

name: Release
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Set up Clojure
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: Build
run: |
mvn -Drevision=${{ github.ref_name }} --batch-mode --update-snapshots verify
mv ./target/kafka-connect-plugins-${{ github.ref_name }}-jar-with-dependencies.jar ./kafka-connect-plugins-${{ github.ref_name }}.jar
- name: Set up Docker environment
run: |
docker compose up --wait --no-color --quiet-pull
- name: Test
run: |
clojure -X:test :dirs '["src/test/clojure"]'
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
kafka-connect-plugins-${{ github.ref_name }}.jar