Skip to content

Commit

Permalink
Merge pull request #507 from nipunayf/update-workflows
Browse files Browse the repository at this point in the history
Update the Github workflows
  • Loading branch information
hasithaa authored Nov 27, 2024
2 parents 54508de + 656e368 commit ee35b5a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
distribution: 'temurin'
java-version: 21.0.3

- name: Set Up Ballerina
uses: ballerina-platform/[email protected]
with:
version: latest

- name: Change to Timestamped Version
run: |
startTime=$(TZ="Asia/Kolkata" date +'%Y%m%d-%H%M00')
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
with:
distribution: 'temurin'
java-version: 21.0.3

- name: Set Up Ballerina
uses: ballerina-platform/[email protected]
with:
version: latest

- name: Build with Gradle
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
Expand All @@ -45,6 +51,12 @@ jobs:
with:
distribution: 'temurin'
java-version: 21.0.3

- name: Set Up Ballerina
uses: ballerina-platform/[email protected]
with:
version: latest

- name: Build with Gradle
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
with:
distribution: 'temurin'
java-version: 21.0.3

- name: Set Up Ballerina
uses: ballerina-platform/[email protected]
with:
version: latest

- name: Set version env variable
run: echo VERSION=$((grep -w "version" | cut -d= -f2) < gradle.properties | cut -d- -f1) >> $GITHUB_ENV
- name: Pre release depenency version update
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build -x :docerina-ui:npmTestDocerinaUI
run: ./gradlew build -x :createArtifactZip -x :docerina-ui:npmTestDocerinaUI

- name: Generate Codecov Report
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew.bat build -x :docerina-ui:npmTestDocerinaUI
run: ./gradlew.bat build -x :createArtifactZip -x :docerina-ui:npmTestDocerinaUI

windows-build-2:

Expand Down Expand Up @@ -92,6 +92,6 @@ jobs:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew.bat build -x :docerina-ui:npmTestDocerinaUI -x test
./gradlew.bat build -x :createArtifactZip -x :docerina-ui:npmTestDocerinaUI -x test
./gradlew.bat :flow-model-generator:flow-model-generator-ls-extension:test
working-directory: ${{ github.workspace }}/test folder

0 comments on commit ee35b5a

Please sign in to comment.