Skip to content

Merge pull request #46 from SanctumLabs/dependabot/gradle/io.ktor.plu… #113

Merge pull request #46 from SanctumLabs/dependabot/gradle/io.ktor.plu…

Merge pull request #46 from SanctumLabs/dependabot/gradle/io.ktor.plu… #113

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Test
on: [ push ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
# Ref: https://github.com/actions/checkout
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
# Ref: https://github.com/actions/cache
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run tests
run: ./gradlew test