Skip to content

Merge pull request #28 from Core2002/main #228

Merge pull request #28 from Core2002/main

Merge pull request #28 from Core2002/main #228

Workflow file for this run

name: Tests for Redis
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
redis:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '#Skip')"
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- name: Set up Redis 6
uses: supercharge/[email protected]
with:
redis-version: 6
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Gradle test
run: ./gradlew :alkaid-redis:test -Dtest.single="com/alkaidmc/alkaid/redis/AlkaidRedisTest"
- name: Upload fail reports
uses: actions/upload-artifact@v3
if: failure()
with:
name: redis-test-failure
path: alkaid-redis/build/reports