Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Jun 20, 2024
2 parents fdefefd + 9c4bac8 commit 77d5577
Show file tree
Hide file tree
Showing 43 changed files with 2,165 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

github: "LeakyAbstractions"
ko_fi: "guillermocalvo"
custom: "buymeacoffee.com/result"
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2

updates:

# ================================
# UPDATE GRADLE DEPENDENCIES
# ================================
- package-ecosystem: gradle
directory: /
target-branch: develop
schedule:
interval: weekly

# ================================
# UPDATE GITHUB ACTIONS
# ================================
- package-ecosystem: github-actions
directory: /
target-branch: develop
schedule:
interval: weekly
69 changes: 69 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

# Continuous Integration
name: Build

on:
push:
branches:
- '*'
pull_request:
branches:
- main
- develop

jobs:
build:

name: Build on JDK${{ matrix.jdk }}
runs-on: ubuntu-latest

strategy:
matrix:
jdk: [ 17, 21 ]

steps:

# ================================
# SHALLOW CLONE
# ================================
- name: Shallow clone
uses: actions/checkout@v4

# ================================
# VALIDATE GRADLE WRAPPER
# ================================
- name: Validate Gradle Wrapper files
uses: gradle/actions/wrapper-validation@v3

# ================================
# SET UP JDK
# ================================
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-package: jdk
java-version: ${{ matrix.jdk }}

# ================================
# SET UP GRADLE
# ================================
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
cache-read-only: ${{ github.ref_name != 'main' && github.ref_name != 'develop' }}

# ================================
# BUILD
# ================================
- name: Build
run: ./gradlew build -x check

# ================================
# CHECK
# ================================
- name: Check
run: ./gradlew check
49 changes: 49 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

# Discover vulnerabilities with CodeQL
name: CodeQL

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
schedule:
- cron: '0 8 * * 0'

jobs:
analyze:

name: Analyze Java
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write

steps:

# ================================
# SHALLOW CLONE
# ================================
- name: Shallow clone
uses: actions/checkout@v4

# ================================
# SET UP CODEQL
# ================================
- name: Set up CodeQL
uses: github/codeql-action/init@v3
with:
languages: java-kotlin
build-mode: autobuild

# ================================
# ANALYZE
# ================================
- name: Analyze with CodeQL
uses: github/codeql-action/analyze@v3
with:
category: "/language:java-kotlin"
41 changes: 41 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

# Submit dependencies
name: Dependencies

on:
push:
branches:
- main

permissions:
contents: write

jobs:
dependencies:

name: Submit dependencies
runs-on: ubuntu-latest

steps:

# ================================
# SHALLOW CLONE
# ================================
- name: Shallow clone
uses: actions/checkout@v4

# ================================
# SET UP JDK
# ================================
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-package: jdk
java-version: 21

# ================================
# SUBMIT DEPENDENCIES
# ================================
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3
32 changes: 32 additions & 0 deletions .github/workflows/update-gradle-wrapper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# Schedule Gradle Wrapper updates
name: Update Gradle Wrapper

on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:

jobs:
update-gradle-wrapper:

name: Update Gradle Wrapper
runs-on: ubuntu-latest

steps:

# ================================
# SHALLOW CLONE
# ================================
- name: Shallow clone
uses: actions/checkout@v4

# ================================
# UPDATE GRADLE WRAPPER
# ================================
- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v1
with:
release-channel: stable
base-branch: develop
target-branch: develop
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
Loading

0 comments on commit 77d5577

Please sign in to comment.