Skip to content

Commit

Permalink
Fix CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
abhilash1in committed Apr 16, 2024
1 parent b6b17a2 commit ce94b1e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci-jfrog-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ name: Publish to LinkedIn JFrog

on:
release:
branches:
- 'li-dev/**'
types: [published]
jobs:
deploy:
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
Expand All @@ -15,7 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# This workflow will build a Java project with Maven
# See also:
Expand All @@ -25,11 +23,9 @@ name: CI

on:
push:
branches:
- 'li-dev/**'
branches: [ '*' ]
pull_request:
branches:
- 'li-dev/**'
branches: [ '*' ]

jobs:
mvn:
Expand All @@ -52,13 +48,14 @@ jobs:
timeout-minutes: 360
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.profile.jdk }}
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.profile.jdk }}
distribution: temurin
- name: Cache local maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.m2/repository/
Expand All @@ -68,22 +65,24 @@ jobs:
- name: Show the first log message
run: git log -n1
- name: Install C Dependencies
run: sudo apt-get install libcppunit-dev libsasl2-dev
run: |
sudo apt update
sudo apt install -y libcppunit-dev libsasl2-dev
- name: Build with Maven (${{ matrix.profile.name }})
run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ matrix.profile.args }}
env:
MAVEN_OPTS: -Djansi.force=true
- name: Upload unit test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: surefire-reports-${{ matrix.profile.name }}
path: ./**/target/surefire-reports/
if-no-files-found: ignore
- name: Upload integration test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: failsafe-reports-${{ matrix.profile.name }}
path: ./**/target/failsafe-reports/
if-no-files-found: ignore
if-no-files-found: ignore
13 changes: 8 additions & 5 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ jobs:
timeout-minutes: 360
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: temurin
- name: Cache local maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.m2/repository/
Expand All @@ -47,7 +48,9 @@ jobs:
- name: Show the first log message
run: git log -n1
- name: Install C Dependencies
run: sudo apt-get install libcppunit-dev libsasl2-dev
run: |
sudo apt update
sudo apt install -y libcppunit-dev libsasl2-dev
- name: Build with Maven
run: mvn -B -V -e -ntp "-Dstyle.color=always" package -DskipTests
env:
Expand All @@ -71,4 +74,4 @@ jobs:
if: matrix.zk == 'nightly'
run: tools/ci/test-connectivity.py --server . --client .
env:
ZOOCFG: zoo_sample.cfg
ZOOCFG: zoo_sample.cfg

0 comments on commit ce94b1e

Please sign in to comment.