Merge pull request #435 from Jw0x47/patch-1 #81
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: Check | |
env: | |
GH_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "Check" | |
Build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3.1.1 | |
with: | |
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file | |
java-version: 8 | |
# Java distribution. See the list of supported distributions in README file | |
distribution: zulu | |
# Runs a set of commands using the runners shell | |
- name: generateChangelog | |
run: | | |
./gradlew generateChangelog | |
cat ./doc/CHANGELOG.md | |
- name: build plugin | |
run: ./gradlew buildPlugin | |
- name: check createGithubReleaseNotes | |
run: ./gradlew createGithubReleaseNotes | |
Unit_Test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3.1.1 | |
with: | |
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file | |
java-version: 8 | |
# Java distribution. See the list of supported distributions in README file | |
distribution: zulu | |
# Runs a set of commands using the runners shell | |
- name: unit test | |
run: | | |
./gradlew check --scan | |
- name: unit test in library | |
run: ./gradlew build test -p library | |