feat: integrate spellchecker (#40) #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
- name: Run tests | |
run: ./gradlew test --no-daemon | |
publish: | |
needs: | |
- test | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install markdown tool and generate change notes | |
run: | | |
sudo apt-get update | |
sudo apt-get install markdown | |
{ | |
echo 'CHANGE_NOTES<<EOF' | |
gh release view --json body --template "{{.body}}" $GITHUB_REF_NAME | markdown | |
echo EOF | |
} >> "$GITHUB_ENV" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Publish plugin | |
run: ./gradlew :thrift:publishPlugin --no-daemon | |
env: | |
JETBRAINS_TOKEN: ${{ secrets.JETBRAINS_TOKEN }} |