Skip to content

Commit

Permalink
Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mjossdev committed Jun 15, 2023
1 parent e101a3d commit 2081763
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build
on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build
run: ./gradlew --no-daemon build
28 changes: 28 additions & 0 deletions .github/workflows/gradle-dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Gradle Dependency Submission
on:
push:
branches: [main]

jobs:
gradle-action-detection:
runs-on: ubuntu-latest
# The Dependency Submission API requires write permission
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Run snapshot action
uses: mikepenz/gradle-dependency-submission@main
with:
gradle-build-module: |-
cli
gradle-build-configuration: |-
compileClasspath
sub-module-mode: 'INDIVIDUAL_DEEP'
35 changes: 35 additions & 0 deletions .github/workflows/qodana-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Qodana
on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
qodana-jvm:
runs-on: ubuntu-latest

# The CodeQL Action requires security write permission
permissions:
security-events: write

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build
run: ./gradlew --no-daemon build -x test

- uses: JetBrains/[email protected]
with:
pr-mode: false
cache-default-branch-only: true

- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
49 changes: 49 additions & 0 deletions .github/workflows/security-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "Security Scanning"

on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 6 * * 1'

jobs:
CodeQL-Build:
runs-on: ubuntu-latest

# The CodeQL Action requires security write permission
permissions:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: kotlin
queries: security-and-quality

- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build
run: ./gradlew --no-daemon build -x test

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 2081763

Please sign in to comment.