Skip to content

chore: update guidelines, plugin and change notes generation (#38) #127

chore: update guidelines, plugin and change notes generation (#38)

chore: update guidelines, plugin and change notes generation (#38) #127

Workflow file for this run

name: Run tests with Gradle
on:
pull_request:
branches:
- develop
push:
branches:
- develop
tags:
- '*'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Run tests
run: ./gradlew test --no-daemon
publish:
needs:
- test
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
steps:
- name: Install markdown tool and generate change notes
run: |
sudo apt-get update
sudo apt-get install markdown
echo "CHANGE_NOTES=$(gh release view --json body --template "{{.body}}" $GITHUB_REF_NAME | markdown)" >> "$GITHUB_ENV"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Publish plugin
run: ./gradlew :thrift:publishPlugin --no-daemon
env:
JETBRAINS_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}