Skip to content

Remove previousSha from GitHub PR events #554

Remove previousSha from GitHub PR events

Remove previousSha from GitHub PR events #554

name: gradle plugin checks
on:
push:
branches: [ main ]
paths:
- gradle/**
- gradle-plugin/**
pull_request:
branches: [ main ]
paths:
- gradle/**
- gradle-plugin/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDKs
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Run build
run: ./gradlew :gradle-plugin:build
unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDKs
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Run unit tests
run: ./gradlew :gradle-plugin:plugin:test
functional_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDKs
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: |
11
17
- name: Run functional tests
run: ./gradlew :gradle-plugin:plugin:functionalTest --stacktrace
- name: Archive test reports
uses: actions/upload-artifact@v4
if: always()
with:
name: Functional test reports
path: '**/build/reports/tests/functionalTest'