Skip to content

Commit 6b0a69c

Browse files
authored
Merge pull request #395 from tishun/topic/tishun/introduce-github-actions
Migrate from CircleCI to Github Actions
2 parents ed602b6 + 73d8f64 commit 6b0a69c

File tree

6 files changed

+65
-202
lines changed

6 files changed

+65
-202
lines changed

.circleci.settings.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 0 additions & 181 deletions
This file was deleted.

.github/workflows/integration.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
paths-ignore:
5+
- 'doc/**'
6+
- '**/*.md'
7+
branches:
8+
- master
9+
- '[0-9].*'
10+
pull_request:
11+
branches:
12+
- master
13+
- '[0-9].*'
14+
schedule:
15+
- cron: '0 1 * * *' # nightly build
16+
workflow_dispatch:
17+
18+
jobs:
19+
20+
build:
21+
name: Build and Test
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout project
25+
uses: actions/checkout@v4
26+
- name: Set Java up in the runner
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: '8'
30+
distribution: 'temurin'
31+
cache: 'maven'
32+
- name: Setup Maven
33+
34+
with:
35+
java-version: 8
36+
- name: Install missing dependencies to container
37+
run: |
38+
sudo apt update
39+
sudo apt install -y libssl-dev
40+
wget http://download.redis.io/releases/redis-6.0.10.tar.gz
41+
tar -xzvf redis-6.0.10.tar.gz
42+
make -C redis-6.0.10 -j`nproc` BUILD_TLS=yes
43+
- name: Maven offline
44+
run: |
45+
mvn -q dependency:go-offline
46+
- name: Run tests
47+
run: |
48+
export PATH=$PWD/redis-6.0.10/src:$PATH
49+
make test
50+
env:
51+
JVM_OPTS: -Xmx3200m
52+
TERM: dumb
53+
- name: Upload coverage reports to Codecov
54+
uses: codecov/[email protected]
55+
with:
56+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ src_managed/
3333
project/boot/
3434
project/plugins/project/
3535
build/*.jar
36+
checkpoint-test/
3637

3738
# eclipse
3839
.project
3940
.classpath
4041
/.settings/
4142

4243
# Redis
43-
dump.rdb
44+
dump.rdb
45+
.DS_Store

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
[![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)
12
[![license](https://img.shields.io/github/license/RedisLabs/spark-redis.svg)](https://github.com/RedisLabs/spark-redis)
23
[![Release](https://img.shields.io/github/release/RedisLabs/spark-redis.svg?sort=semver)](https://github.com/RedisLabs/spark-redis/releases/latest)
3-
[![CircleCI](https://circleci.com/gh/RedisLabs/spark-redis/tree/master.svg?style=svg)](https://circleci.com/gh/RedisLabs/spark-redis/tree/master)
4-
[![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)
4+
[![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)
55
[![Javadocs](https://www.javadoc.io/badge/com.redislabs/spark-redis_2.12.svg)](https://www.javadoc.io/doc/com.redislabs/spark-redis_2.12)
6-
[![Discord](https://img.shields.io/discord/697882427875393627?style=flat-square)](https://discord.gg/Bjt6TcgV)
76
[![Codecov](https://codecov.io/gh/RedisLabs/spark-redis/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisLabs/spark-redis)
87

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

pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
<name>RedisLabs</name>
1313
<url>www.redislabs.com</url>
1414
</organization>
15-
<ciManagement>
16-
<system>CircleCI</system>
17-
<url>https://circleci.com/gh/RedisLabs/spark-redis</url>
18-
</ciManagement>
1915
<issueManagement>
2016
<url>https://github.com/RedisLabs/spark-redis/issues</url>
2117
<system>Github</system>

0 commit comments

Comments
 (0)