diff --git a/.github/workflows/ci-dev.yml b/.github/workflows/ci-dev.yml index 0f0e0ea6..d47372da 100644 --- a/.github/workflows/ci-dev.yml +++ b/.github/workflows/ci-dev.yml @@ -1,17 +1,14 @@ name: Dev CI on: + pull_request: + paths-ignore: + - samples/** push: paths-ignore: - samples/** - branches-ignore: - - master + branches: + - ci/** jobs: test: uses: ./.github/workflows/run-tests.yml - publish: - needs: [ test ] - uses: ./.github/workflows/publish-snapshot.yml - secrets: inherit - with: - add-branch-suffix: true diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index e861b83f..1162b282 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -13,5 +13,3 @@ jobs: needs: [ test ] uses: ./.github/workflows/publish-snapshot.yml secrets: inherit - with: - add-branch-suffix: false diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml deleted file mode 100644 index 32705f7c..00000000 --- a/.github/workflows/ci-pr.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: Pull Request CI -on: - pull_request: - paths-ignore: - - samples/** - -jobs: - test: - uses: ./.github/workflows/run-tests.yml diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 8feeff89..f6094694 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -5,9 +5,9 @@ on: - '*' jobs: - # test: - # uses: ./.github/workflows/run-tests.yml + test: + uses: ./.github/workflows/run-tests.yml publish: - # needs: [ test ] + needs: [ test ] uses: ./.github/workflows/publish-release.yml secrets: inherit diff --git a/.github/workflows/ci-samples.yml b/.github/workflows/ci-samples.yml index 3af1408d..73abb2f4 100644 --- a/.github/workflows/ci-samples.yml +++ b/.github/workflows/ci-samples.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-latest, windows-latest, macos-14 ] + os: [ ubuntu-latest, windows-latest, macos-latest ] sample: [ chat ] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 81457cd9..f9efff82 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -1,6 +1,5 @@ name: Publish RELEASE to Maven Central -on: - workflow_call: +on: [ workflow_call ] concurrency: group: publish-release @@ -9,7 +8,7 @@ concurrency: jobs: publish: if: github.repository == 'rsocket/rsocket-kotlin' - runs-on: macos-14 + runs-on: macos-latest steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-gradle diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index b880aec3..fcf3ec6e 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -1,34 +1,22 @@ -name: Publish SNAPSHOT to Github Packages -on: - workflow_call: - inputs: - add-branch-suffix: - type: boolean - required: true +name: Publish SNAPSHOT to Maven Central +on: [ workflow_call ] concurrency: - group: publish-snapshot-${{ github.ref_name }} + group: publish-snapshot cancel-in-progress: false jobs: publish: if: github.repository == 'rsocket/rsocket-kotlin' - runs-on: macos-14 + runs-on: macos-latest steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-gradle with: - cache-read-only: true - - - if: inputs.add-branch-suffix - id: set-version - run: | - ref_name=${{ github.ref_name }} - branch_name="${ref_name////-}" - echo "::set-output name=version-suffix::$branch_name" + cache-disabled: true - name: Publish snapshot to Maven Central - run: ./gradlew publishToMavenCentral -Pversion=0.16.0-${{ steps.set-version.outputs.version-suffix }}-SNAPSHOT --no-configuration-cache + run: ./gradlew publishToMavenCentral -Pversion=0.17.0-SNAPSHOT --no-configuration-cache env: ORG_GRADLE_PROJECT_signingInMemoryKey: ${{secrets.signingKey}} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{secrets.signingPassword}} diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 12a3a91c..f320d45f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,16 +12,17 @@ jobs: strategy: fail-fast: false matrix: - os: [ 'ubuntu-latest', 'macos-14', 'windows-latest' ] + os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-gradle with: - cache-read-only: ${{ github.ref_name != 'main' }} + cache-read-only: ${{ github.ref_name != 'master' }} - run: ./gradlew build publishToMavenLocal --continue -Prsocketbuild.skipTests=true run-tests: + needs: [ build-project ] runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -29,13 +30,13 @@ jobs: os: [ 'ubuntu-latest' ] target: [ 'jvm', 'jvm11', 'jvm17', 'jvm21', 'js', 'native' ] include: - - os: 'macos-14' + - os: 'macos-latest' target: 'macos' - - os: 'macos-14' + - os: 'macos-latest' target: 'ios' - - os: 'macos-14' + - os: 'macos-latest' target: 'watchos' - - os: 'macos-14' + - os: 'macos-latest' target: 'tvos' - os: 'windows-latest' target: 'native'