Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved workflows #54

Merged
merged 8 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: CodeQL


on:
push:
branches: ["master"]
Expand All @@ -8,10 +9,11 @@ on:
schedule:
- cron: '0 23 * * 0'


jobs:
analyze:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
actions: read
Expand All @@ -23,6 +25,16 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]

# https://github.com/actions/setup-java/releases
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
java-package: jdk
architecture: x64
cache: gradle

# https://github.com/github/codeql-action
- name: Initialize CodeQL
uses: github/codeql-action/[email protected]
Expand Down
31 changes: 26 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,51 @@
name: Build with Gradle
name: Build Gradle


on:
push:
pull_request:

on: [ push, pull_request ]

jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
# https://github.com/actions/checkout/releases
- name: Check out Git repository
uses: actions/[email protected]

# https://github.com/gradle/gradle-build-action
- name: Setup Gradle
uses: gradle/actions/[email protected]

# https://github.com/gradle/wrapper-validation-action
- name: Wrapper validation
uses: gradle/actions/[email protected]

# https://github.com/actions/setup-java/releases
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
java-package: jdk
architecture: x64
cache: gradle

- name: Configure Git
run: git config --global user.name "Github Actions" && git config --global user.email "[email protected]"

- name: Make Gradlew executable
run: chmod +x ./gradlew

- name: Build with Gradle
- name: Build project
run: ./gradlew shadowJar --no-daemon

# https://github.com/actions/upload-artifact/releases
- name: Upload build artifact
uses: actions/[email protected]
with:
name: UltraCosmetics-gui-addon-dev
path: build/libs/UltraCosmetics-gui-addon-*-all.jar
path: build/libs/UltraCosmetics-gui-addon-*.jar
4 changes: 3 additions & 1 deletion .github/workflows/update-gradle-wrapper.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Update Gradle Wrapper


on:
schedule:
- cron: "0 23 * * 0"


jobs:
update-gradle-wrapper:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
# https://github.com/actions/checkout
Expand Down