Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial setup for KMP #45

Merged
merged 8 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:

jobs:
release:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Assembly
uses: gradle/gradle-build-action@v2
with:
arguments: jar sourcesJar javadocJar --parallel --stacktrace
arguments: assemble sourcesJar javadocJar --parallel --stacktrace

- name: Sign & publish to Maven Central
uses: gradle/gradle-build-action@v2
Expand All @@ -46,4 +46,4 @@ jobs:
RELEASER_NEXUS2_USERNAME: ${{ secrets.RELEASER_NEXUS2_USERNAME }}
RELEASER_NEXUS2_PASSWORD: ${{ secrets.RELEASER_NEXUS2_PASSWORD }}
with:
arguments: jar sourcesJar javadocJar signMavenPublication signJavadocJar publish --stacktrace
arguments: assemble sourcesJar javadocJar signAllPublications publish --stacktrace
55 changes: 54 additions & 1 deletion .github/workflows/test-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,23 @@ on:
containers:
required: false
type: string
linux:
required: false
type: boolean
default: true
windows:
required: false
type: boolean
default: false
osx:
required: false
type: boolean
default: false

jobs:
run:
linux-test:
name: ${{ inputs.module }} module
if: ${{ inputs.linux }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -33,3 +46,43 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
arguments: ${{ inputs.path }}:test
windows-test:
name: ${{ inputs.module }} module
if: ${{ inputs.windows }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check
run: ls -lh
- name: Run docker-compose
if: ${{ inputs.containers }}
run: docker compose up ${{ inputs.containers }} -d
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Run tests
uses: gradle/gradle-build-action@v2
with:
arguments: ${{ inputs.path }}:test
osx-test:
name: ${{ inputs.module }} module
if: ${{ inputs.osx }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Check
run: ls -lh
- name: Run docker-compose
if: ${{ inputs.containers }}
run: docker compose up ${{ inputs.containers }} -d
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Run tests
uses: gradle/gradle-build-action@v2
with:
arguments: ${{ inputs.path }}:test
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
with:
module: River Core
path: :core
windows: true
linux: true
osx: true

amqp:
uses: ./.github/workflows/test-module.yml
Expand Down Expand Up @@ -90,6 +93,9 @@ jobs:
with:
module: Formats (JSON, CSV, Positional Flat Line)
path: :connector:connector-format
windows: true
linux: true
osx: true

ftp:
uses: ./.github/workflows/test-module.yml
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ build
.idea/
volume/
.DS_Store
data/
data/
kotlin-js-store/
local.properties
Loading
Loading