1
- # This is a basic workflow to help you get started with Actions
1
+ name : Check
2
2
3
- name : Check Unit Test
3
+ env :
4
+ GH_TOKEN : ${{ secrets.CUSTOM_GITHUB_TOKEN }}
4
5
5
6
# Controls when the workflow will run
6
7
on :
15
16
16
17
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17
18
jobs :
18
- # This workflow contains a single job called "build "
19
- Check :
19
+ # This workflow contains a single job called "Check "
20
+ Build :
20
21
# The type of runner that the job will run on
21
22
runs-on : ubuntu-latest
22
23
@@ -34,24 +35,42 @@ jobs:
34
35
distribution : zulu
35
36
36
37
# Runs a set of commands using the runners shell
37
- - name : check unit test
38
- run : |
39
- ./gradlew check --scan
40
38
- name : generateChangelog
41
39
run : |
42
40
./gradlew generateChangelog
43
41
cat ./doc/CHANGELOG.md
44
- if : github.event_name == 'push'
45
-
46
- - name : test build plugin
42
+
43
+ - name : build plugin
47
44
run : ./gradlew buildPlugin
48
- if : github.event_name == 'push'
49
-
50
- - name : check library
51
- run : ./gradlew build test -p library
52
45
53
46
- name : check createGithubReleaseNotes
54
47
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
+
56
75
57
76
0 commit comments