Skip to content

Commit

Permalink
Merge c1a27f8 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 20, 2022
2 parents 16a2319 + c1a27f8 commit c33a1cd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,32 @@ jobs:
- name: Build uber jar
run: ./gradlew uberJar
- name: Run tests
run: python src/test/python/test_uber.py
run: python src/test/python/test_uber.py

version-test:
# prevents pushing newer code with an already published version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup JDK
uses: actions/setup-java@master
with:
java-version: 17
distribution: 'temurin'
cache: gradle
- name: Get the project version
id: get_version
run: |
git fetch --all --tags
VERSION=$(./gradlew properties | grep version | awk '{print $2}')
echo "Version $VERSION"
[[ -z $(git tag -l $VERSION) ]] # check this version was not published
echo "result=$VERSION" >>$GITHUB_OUTPUT
to-staging:
needs: [unit-test, python-test]
needs: [unit-test, python-test, version-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "io.github.rtmigo"
version = "0.1.1"
version = "0.1.2-SNAPSHOT"

repositories {
mavenCentral()
Expand Down

0 comments on commit c33a1cd

Please sign in to comment.