From ce1c50ea39563c9e28c0a896e7ecbac8243428c7 Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Mon, 13 Feb 2023 15:50:24 +0200 Subject: [PATCH 1/2] osx build ci --- .github/workflows/oscoverage.yml | 62 ++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/oscoverage.yml diff --git a/.github/workflows/oscoverage.yml b/.github/workflows/oscoverage.yml new file mode 100644 index 0000000000..08c12cfef3 --- /dev/null +++ b/.github/workflows/oscoverage.yml @@ -0,0 +1,62 @@ +--- + +name: Integration + +on: + push: + paths-ignore: + - 'docs/**' + - '**/*.md' + - '**/*.rst' + branches: + - master + - '[0-9].[0-9]' + pull_request: + branches: + - master + - '[0-9].[0-9]' + schedule: + - cron: '0 1 * * *' # nightly build + +jobs: + + build: + name: Build and Test + runs-on: macos-latest + steps: + # https://github.com/orgs/community/discussions/25777#discussioncomment-3249229 + - uses: docker-practice/actions-setup-docker@master + timeout-minutes: 12 + - uses: actions/checkout@v2 + - name: Set up publishing to maven central + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'temurin' + - name: System setup + run: | + brew install gcc g++ stunnel make + /usr/local/bin/make system-setup + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: | + ~/.m2/repository + /var/cache/apt + key: jedis-${{hashFiles('**/pom.xml')}} + - name: Maven offline + run: | + mvn -q dependency:go-offline + - name: Run tests + run: | + TEST="" make test + env: + JVM_OPTS: -Xmx3200m + TERM: dumb + - name: redismod docker + run: docker run -p 52567:6379 -d redislabs/redismod:edge + - name: Run tests + run: mvn -DmodulesDocker="localhost:52567" -Dtest="redis.clients.jedis.modules.**" test + - name: Codecov + run: | + bash <(curl -s https://codecov.io/bash) From 96dabdf999e9e9ae94e3c190a3be490e40165096 Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Mon, 13 Feb 2023 16:12:16 +0200 Subject: [PATCH 2/2] make --- .github/workflows/oscoverage.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/oscoverage.yml b/.github/workflows/oscoverage.yml index 08c12cfef3..001579aaa0 100644 --- a/.github/workflows/oscoverage.yml +++ b/.github/workflows/oscoverage.yml @@ -27,7 +27,11 @@ jobs: # https://github.com/orgs/community/discussions/25777#discussioncomment-3249229 - uses: docker-practice/actions-setup-docker@master timeout-minutes: 12 - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + with: + repository: redis/redis + path: redis-git - name: Set up publishing to maven central uses: actions/setup-java@v2 with: @@ -35,8 +39,8 @@ jobs: distribution: 'temurin' - name: System setup run: | - brew install gcc g++ stunnel make - /usr/local/bin/make system-setup + brew install gcc stunnel make + /usr/local/bin/make -C redis-git - name: Cache dependencies uses: actions/cache@v2 with: