-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI Updates - Add: GitHub actions CI. - Add: Code Coverage. - Add: Static code scanning. - Fix: Travis-CI * Updated AgriCore - Fix: Bad test in AgriCore causing failed builds. - Add: Updated readme to reflect known gradle compilation isssues. * Fix VSCode Task - Fix: Gradle `genVSCodeRuns` task now works properly. - Fix: Removed bad exception classes from InfinityLib that aren't valid on OpenJDK.
- Loading branch information
Showing
9 changed files
with
335 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '15 5 * * 6' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'java' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | ||
# Learn more: | ||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This workflow will build a Java project with Gradle | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Java CI with Gradle | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
validate: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Gradle Wrapper Validation | ||
uses: gradle/wrapper-validation-action@v1.0.3 | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew assemble -S | ||
- name: Test with Gradle | ||
run: ./gradlew check -S | ||
- name: Publish Code Coverage Report | ||
run: bash <(curl -s https://codecov.io/bash) | ||
- name: JUnit Report | ||
uses: mikepenz/action-junit-report@v1.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,77 @@ | ||
# Ignore Rundirs. | ||
run/ | ||
|
||
# Ignore IDE Files. | ||
# ============================================================================= | ||
# AgriCraft .gitignore | ||
# ============================================================================= | ||
|
||
# ----------------------------------------------------------------------------- | ||
# IDE Ignores | ||
# ----------------------------------------------------------------------------- | ||
|
||
# Eclipse | ||
eclipse/ | ||
.nb-gradle/ | ||
|
||
# JetBrains | ||
.idea/ | ||
|
||
# Netbeans | ||
.nb-gradle | ||
.nb-gradle-properties | ||
nbproject | ||
|
||
# VSCode | ||
.vscode | ||
.classpath | ||
.project | ||
.settings/ | ||
.settings | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Gradle Ignores | ||
# ----------------------------------------------------------------------------- | ||
|
||
# Ignore Gradle Stuff | ||
gradle.properties | ||
.gradle/ | ||
|
||
# Ignore Git | ||
.git/ | ||
|
||
# Ignore Build Files | ||
build/ | ||
dist/ | ||
out/ | ||
logs/ | ||
bin/ | ||
|
||
*.iml | ||
*.ipr | ||
*.iws | ||
Schematic_to_Java* | ||
schematics/ | ||
# ----------------------------------------------------------------------------- | ||
# ForgeGradle Ignores | ||
# ----------------------------------------------------------------------------- | ||
|
||
# Ignore Rundirs. | ||
run/ | ||
|
||
# ----------------------------------------------------------------------------- | ||
# AgriCraft Ignores | ||
# ----------------------------------------------------------------------------- | ||
|
||
# Ignore Dependencies | ||
libs/ | ||
AgriCraft_Dependencies.rar | ||
dependencies.zip | ||
*.bak | ||
*.bak | ||
|
||
# ----------------------------------------------------------------------------- | ||
# General Ignores | ||
# ----------------------------------------------------------------------------- | ||
|
||
# Ignore Git | ||
.git/ | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Mac Junk | ||
.DS_Store | ||
|
||
# Unknown Ignores | ||
*.iml | ||
*.ipr | ||
*.iws | ||
Schematic_to_Java* | ||
schematics/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.