Skip to content

Commit 9446a76

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 7c3f8dd + 9b63c29 commit 9446a76

File tree

1 file changed

+34
-15
lines changed

1 file changed

+34
-15
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# This is a basic workflow to help you get started with Actions
1+
name: Check
22

3-
name: Check Unit Test
3+
env:
4+
GH_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
45

56
# Controls when the workflow will run
67
on:
@@ -15,8 +16,8 @@ on:
1516

1617
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1718
jobs:
18-
# This workflow contains a single job called "build"
19-
Check:
19+
# This workflow contains a single job called "Check"
20+
Build:
2021
# The type of runner that the job will run on
2122
runs-on: ubuntu-latest
2223

@@ -34,24 +35,42 @@ jobs:
3435
distribution: zulu
3536

3637
# Runs a set of commands using the runners shell
37-
- name: check unit test
38-
run: |
39-
./gradlew check --scan
4038
- name: generateChangelog
4139
run: |
4240
./gradlew generateChangelog
4341
cat ./doc/CHANGELOG.md
44-
if: github.event_name == 'push'
45-
46-
- name: test build plugin
42+
43+
- name: build plugin
4744
run: ./gradlew buildPlugin
48-
if: github.event_name == 'push'
49-
50-
- name: check library
51-
run: ./gradlew build test -p library
5245

5346
- name: check createGithubReleaseNotes
5447
run: ./gradlew createGithubReleaseNotes
55-
if: github.event_name == 'push'
48+
49+
Unit_Test:
50+
# The type of runner that the job will run on
51+
runs-on: ubuntu-latest
52+
53+
# Steps represent a sequence of tasks that will be executed as part of the job
54+
steps:
55+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
56+
- uses: actions/checkout@v3
57+
58+
- name: Setup Java JDK
59+
uses: actions/setup-java@v3.1.1
60+
with:
61+
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
62+
java-version: 8
63+
# Java distribution. See the list of supported distributions in README file
64+
distribution: zulu
65+
66+
# Runs a set of commands using the runners shell
67+
- name: unit test
68+
run: |
69+
./gradlew check --scan
70+
71+
- name: unit test in library
72+
run: ./gradlew build test -p library
73+
74+
5675

5776

0 commit comments

Comments
 (0)