Skip to content

Commit

Permalink
Merge pull request #395 from tishun/topic/tishun/introduce-github-act…
Browse files Browse the repository at this point in the history
…ions

Migrate from CircleCI to Github Actions
  • Loading branch information
tishun authored Oct 22, 2024
2 parents ed602b6 + 73d8f64 commit 6b0a69c
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 202 deletions.
13 changes: 0 additions & 13 deletions .circleci.settings.xml

This file was deleted.

181 changes: 0 additions & 181 deletions .circleci/config.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Continuous Integration
on:
push:
paths-ignore:
- 'doc/**'
- '**/*.md'
branches:
- master
- '[0-9].*'
pull_request:
branches:
- master
- '[0-9].*'
schedule:
- cron: '0 1 * * *' # nightly build
workflow_dispatch:

jobs:

build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Set Java up in the runner
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
cache: 'maven'
- name: Setup Maven
uses: s4u/[email protected]
with:
java-version: 8
- name: Install missing dependencies to container
run: |
sudo apt update
sudo apt install -y libssl-dev
wget http://download.redis.io/releases/redis-6.0.10.tar.gz
tar -xzvf redis-6.0.10.tar.gz
make -C redis-6.0.10 -j`nproc` BUILD_TLS=yes
- name: Maven offline
run: |
mvn -q dependency:go-offline
- name: Run tests
run: |
export PATH=$PWD/redis-6.0.10/src:$PATH
make test
env:
JVM_OPTS: -Xmx3200m
TERM: dumb
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ src_managed/
project/boot/
project/plugins/project/
build/*.jar
checkpoint-test/

# eclipse
.project
.classpath
/.settings/

# Redis
dump.rdb
dump.rdb
.DS_Store
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[![Integration](https://github.com/RedisLabs/spark-redis/actions/workflows/integration.yml/badge.svg?branch=master)](https://github.com/RedisLabs/spark-redis/actions/workflows/integration.yml)
[![license](https://img.shields.io/github/license/RedisLabs/spark-redis.svg)](https://github.com/RedisLabs/spark-redis)
[![Release](https://img.shields.io/github/release/RedisLabs/spark-redis.svg?sort=semver)](https://github.com/RedisLabs/spark-redis/releases/latest)
[![CircleCI](https://circleci.com/gh/RedisLabs/spark-redis/tree/master.svg?style=svg)](https://circleci.com/gh/RedisLabs/spark-redis/tree/master)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.redislabs/spark-redis_2.12/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.redislabs/spark-redis_2.12)
[![Maven Central](https://img.shields.io/maven-central/v/com.redislabs/spark-redis_2.12?logo=redis)](https://maven-badges.herokuapp.com/maven-central/com.redislabs/spark-redis_2.12)
[![Javadocs](https://www.javadoc.io/badge/com.redislabs/spark-redis_2.12.svg)](https://www.javadoc.io/doc/com.redislabs/spark-redis_2.12)
[![Discord](https://img.shields.io/discord/697882427875393627?style=flat-square)](https://discord.gg/Bjt6TcgV)
[![Codecov](https://codecov.io/gh/RedisLabs/spark-redis/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisLabs/spark-redis)

[![Discord](https://img.shields.io/discord/697882427875393627.svg?style=social&logo=discord)](https://discord.gg/redis)
[![Twitch](https://img.shields.io/twitch/status/redisinc?style=social)](https://www.twitch.tv/redisinc)
[![YouTube](https://img.shields.io/youtube/channel/views/UCD78lHSwYqMlyetR0_P4Vig?style=social)](https://www.youtube.com/redisinc)
[![Twitter](https://img.shields.io/twitter/follow/redisinc?style=social)](https://twitter.com/redisinc)
# Spark-Redis
A library for reading and writing data in [Redis](http://redis.io) using [Apache Spark](http://spark.apache.org/).

Expand Down
4 changes: 0 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
<name>RedisLabs</name>
<url>www.redislabs.com</url>
</organization>
<ciManagement>
<system>CircleCI</system>
<url>https://circleci.com/gh/RedisLabs/spark-redis</url>
</ciManagement>
<issueManagement>
<url>https://github.com/RedisLabs/spark-redis/issues</url>
<system>Github</system>
Expand Down

0 comments on commit 6b0a69c

Please sign in to comment.