Skip to content

Migrating Circle to GitHub Actions #365

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
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.

59 changes: 59 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---

name: Integration

env:
redis_version: 6.0.10

on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
branches:
- master
- main
- '[0-9].[0-9]'
pull_request:
branches:
- master
- main
schedule:
- cron: '0 1 * * *'

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
- name: build redis
run: |
sudo apt-get update -q
sudo apt-get install -qy make gcc g++ libssl-dev
- uses: actions/checkout@v3
with:
repository: redis/redis
path: redis
ref: ${{env.redis_version}}

- name: build and install redis
working-directory: redis
run: |
make BUILD_TLS=yes
sudo make install

- name: run tests
run: |
make test
- name: cache
uses: actions/cache@v2
with:
key: spark-${{hashFiles('**/pom.xml')}}
path: |
~/.m2/repository
/var/cache/apt
42 changes: 42 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---

name: Publish Snapshot

on:
push:
branches:
- master
- '[0-9].[0-9]'

jobs:

snapshot:
name: Deploy Snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up publishing to maven central
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.m2/repository
/var/cache/apt
key: jedis-${{hashFiles('**/pom.xml')}}
- name: mvn offline
run: |
mvn -q dependency:go-offline
- name: deploy
run: |
mvn --no-transfer-progress \
-DskipTests deploy
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}