Skip to content

patch: run tests when pushed to master branch (#3) #6

patch: run tests when pushed to master branch (#3)

patch: run tests when pushed to master branch (#3) #6

Workflow file for this run

name: "Test"
# Only execute this workflow when a PR is opened or when something is pushed to the master branch
on:
push:
branches: [ master ]
jobs:
test:
# Set up OS
runs-on: ubuntu-latest
environment: "Gradle Plugin Test"
steps:
# Checkout code
- name: Checkout Code
uses: actions/checkout@v4
# Setup java and maven
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
cache: 'gradle'
# Setup executable gradle
- name: Make Gradle executable
run: chmod +x gradlew
# Test plugin
- name: Test Plugin
env:
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: ./gradlew check --no-daemon