Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX Build coverage in CI #3292

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/oscoverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---

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@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:
java-version: '8'
distribution: 'temurin'
- name: System setup
run: |
brew install gcc stunnel make
/usr/local/bin/make -C redis-git
- 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)
Loading