Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
wuseal committed Apr 16, 2022
2 parents 7c3f8dd + 9b63c29 commit 9446a76
Showing 1 changed file with 34 additions and 15 deletions.
49 changes: 34 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This is a basic workflow to help you get started with Actions
name: Check

name: Check Unit Test
env:
GH_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

# Controls when the workflow will run
on:
Expand All @@ -15,8 +16,8 @@ on:

# 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 "build"
Check:
# This workflow contains a single job called "Check"
Build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand All @@ -34,24 +35,42 @@ jobs:
distribution: zulu

# Runs a set of commands using the runners shell
- name: check unit test
run: |
./gradlew check --scan
- name: generateChangelog
run: |
./gradlew generateChangelog
cat ./doc/CHANGELOG.md
if: github.event_name == 'push'

- name: test build plugin
- name: build plugin
run: ./gradlew buildPlugin
if: github.event_name == 'push'

- name: check library
run: ./gradlew build test -p library

- name: check createGithubReleaseNotes
run: ./gradlew createGithubReleaseNotes
if: github.event_name == 'push'

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/[email protected]
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




0 comments on commit 9446a76

Please sign in to comment.