File tree Expand file tree Collapse file tree 5 files changed +180
-0
lines changed Expand file tree Collapse file tree 5 files changed +180
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright 2009-2020 the original author or authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ name : Java CI
18
+
19
+ on : [push, pull_request]
20
+
21
+ jobs :
22
+ test :
23
+ runs-on : ${{ matrix.os }}
24
+ strategy :
25
+ matrix :
26
+ os : [ubuntu-latest, macOS-latest, windows-latest]
27
+ java : [8, 11, 15, 16-ea]
28
+ fail-fast : false
29
+ max-parallel : 4
30
+ name : Test JDK ${{ matrix.java }}, ${{ matrix.os }}
31
+
32
+ steps :
33
+ - uses : actions/checkout@v2
34
+ - name : Set up JDK
35
+ uses : actions/setup-java@v1
36
+ with :
37
+ java-version : ${{ matrix.java }}
38
+ - name : Test with Maven
39
+ run : ./mvnw test -B -D"license.skip=true"
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright 2009-2020 the original author or authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ name : Coveralls
18
+
19
+ on : [push, pull_request]
20
+
21
+ jobs :
22
+ build :
23
+ if : github.repository_owner == 'mybatis'
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - uses : actions/checkout@v2
27
+ with :
28
+ # Disabling shallow clone is recommended for improving relevancy of reporting
29
+ fetch-depth : 0
30
+ - name : Set up JDK
31
+ uses : actions/setup-java@v1
32
+ with :
33
+ java-version : 8
34
+ - name : Report Coverage to Coveralls
35
+ run : ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright 2009-2020 the original author or authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ name : SonarCloud
18
+
19
+ on :
20
+ push :
21
+ branches :
22
+ - master
23
+
24
+ jobs :
25
+ build :
26
+ if : github.repository_owner == 'mybatis'
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - uses : actions/checkout@v2
30
+ with :
31
+ # Disabling shallow clone is recommended for improving relevancy of reporting
32
+ fetch-depth : 0
33
+ - name : Set up JDK
34
+ uses : actions/setup-java@v1
35
+ with :
36
+ java-version : 11
37
+ - name : Analyze with SonarCloud
38
+ run : ./mvnw verify jacoco:report sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-dynamic-sql -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dlicense.skip=true
39
+ env :
40
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright 2009-2020 the original author or authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ name : Sonatype
18
+
19
+ on :
20
+ push :
21
+ branches :
22
+ - master
23
+
24
+ jobs :
25
+ build :
26
+ if : github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - uses : actions/checkout@v2
30
+ - name : Set up JDK
31
+ uses : actions/setup-java@v1
32
+ with :
33
+ java-version : 11
34
+ - name : Deploy to Sonatype
35
+ run : ./mvnw deploy -DskipTests -B --settings ./.mvn/settings.xml -Dlicense.skip=true
36
+ env :
37
+ CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME }}
38
+ CI_DEPLOY_PASSWORD : ${{ secrets.CI_DEPLOY_PASSWORD }}
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+
4
+ Copyright 2016-2017 the original author or authors.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+
18
+ -->
19
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.1.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
20
+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" >
21
+ <servers >
22
+ <server >
23
+ <id >ossrh</id >
24
+ <username >${env.CI_DEPLOY_USERNAME}</username >
25
+ <password >${env.CI_DEPLOY_PASSWORD}</password >
26
+ </server >
27
+ </servers >
28
+ </settings >
You can’t perform that action at this time.
0 commit comments