This repository was archived by the owner on Jan 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +113
-1
lines changed
Expand file tree Collapse file tree 4 files changed +113
-1
lines changed Original file line number Diff line number Diff line change 1+ # To get started with Dependabot version updates, you'll need to specify which
2+ # package ecosystems to update and where the package manifests are located.
3+ # Please see the documentation for all configuration options:
4+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+ version : 2
7+ updates :
8+ - package-ecosystem : " gradle"
9+ directory : " /"
10+ schedule :
11+ interval : " daily"
12+ open-pull-requests-limit : 1000
Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+ schedule :
9+ - cron : ' 0 3 * * 3'
10+
11+
12+ jobs :
13+ analyze :
14+ name : Analyze
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v2
20+ with :
21+ # We must fetch at least the immediate parents so that if this is
22+ # a pull request then we can checkout the head.
23+ fetch-depth : 2
24+
25+ # If this run was triggered by a pull request event, then checkout
26+ # the head of the pull request instead of the merge commit.
27+ - run : git checkout HEAD^2
28+ if : ${{ github.event_name == 'pull_request' }}
29+
30+ # Initializes the CodeQL tools for scanning.
31+ - name : Initialize CodeQL
32+ uses : github/codeql-action/init@v1
33+ # Override language selection by uncommenting this and choosing your languages
34+ with :
35+ languages : java
36+
37+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38+ # If this step fails, then you should remove it and run the build manually (see below)
39+ - name : Autobuild
40+ uses : github/codeql-action/autobuild@v1
41+
42+ # ℹ️ Command-line programs to run using the OS shell.
43+ # 📚 https://git.io/JvXDl
44+
45+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46+ # and modify them (or add more) to build your code if your project
47+ # uses a compiled language
48+
49+ # - run: |
50+ # make bootstrap
51+ # make release
52+
53+ - name : Perform CodeQL Analysis
54+ uses : github/codeql-action/analyze@v1
Original file line number Diff line number Diff line change 1+ name : Build
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ types : [ opened, synchronize, reopened ]
8+ jobs :
9+ build :
10+ name : Build
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ with :
15+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16+ - name : Set up JDK 11
17+ uses : actions/setup-java@v1
18+ with :
19+ java-version : 11
20+ - name : Cache SonarCloud packages
21+ uses : actions/cache@v1
22+ with :
23+ path : ~/.sonar/cache
24+ key : ${{ runner.os }}-sonar
25+ restore-keys : ${{ runner.os }}-sonar
26+ - name : Cache Gradle packages
27+ uses : actions/cache@v1
28+ with :
29+ path : ~/.gradle/caches
30+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
31+ restore-keys : ${{ runner.os }}-gradle
32+ - name : Build and analyze
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
35+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
36+ run : ./gradlew build sonarqube --info
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ buildscript {
1111 classpath ' com.github.jengelman.gradle.plugins:shadow:4.0.4'
1212 classpath ' net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
1313 classpath ' org.spongepowered:mixingradle:0.6-SNAPSHOT'
14- classpath ' com.github.Timmi6790:Commons:4e06ba7769'
1514 }
1615}
1716
@@ -22,6 +21,10 @@ repositories {
2221 maven { url = ' https://jitpack.io' }
2322}
2423
24+ plugins {
25+ id " org.sonarqube" version " 3.0"
26+ }
27+
2528apply plugin : ' java'
2629apply plugin : ' com.github.johnrengelman.shadow'
2730
@@ -127,3 +130,10 @@ artifacts {
127130 archives jar
128131 archives shadowJar
129132}
133+
134+ sonarqube {
135+ properties {
136+ property " sonar.projectKey" , " RandomMineplexMod"
137+ property " sonar.host.url" , " https://sonarcube.timmi6790.de"
138+ }
139+ }
You can’t perform that action at this time.
0 commit comments