Skip to content

Commit 9b63c29

Browse files
authored
Merge pull request #389 from wuseal/wuseal-patch-1
Optimize Github Action Speed
2 parents 3a445f9 + 8ff9236 commit 9b63c29

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1818
jobs:
1919
# This workflow contains a single job called "Check"
20-
Build_And_Unit_Test:
20+
Build:
2121
# The type of runner that the job will run on
2222
runs-on: ubuntu-latest
2323

@@ -35,21 +35,42 @@ jobs:
3535
distribution: zulu
3636

3737
# Runs a set of commands using the runners shell
38-
- name: check unit test
39-
run: |
40-
./gradlew check --scan
4138
- name: generateChangelog
4239
run: |
4340
./gradlew generateChangelog
4441
cat ./doc/CHANGELOG.md
45-
46-
- name: test build plugin
42+
43+
- name: build plugin
4744
run: ./gradlew buildPlugin
4845

49-
- name: check library
50-
run: ./gradlew build test -p library
51-
5246
- name: check createGithubReleaseNotes
5347
run: ./gradlew createGithubReleaseNotes
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+
5475

5576

0 commit comments

Comments
 (0)