Skip to content

Commit

Permalink
Initial setup for KMP (#45)
Browse files Browse the repository at this point in the history
Initial setup for KMP
  • Loading branch information
gabfssilva authored Jan 25, 2024
1 parent 5e5651d commit f2e1b97
Show file tree
Hide file tree
Showing 224 changed files with 1,232 additions and 796 deletions.
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

0 comments on commit f2e1b97

Please sign in to comment.