Skip to content

Commit

Permalink
add github workflows for new modules
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzHeinrich committed Sep 9, 2024
1 parent bdb351d commit fd9a57c
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 43 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run-gradle-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Execute Gradle Task

on:
workflow_call:
inputs:
gradle-task:
required: true
type: string

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Java17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'

- name: Run Gradle Task
run: ./gradlew ${{ inputs.gradle-task }}
19 changes: 19 additions & 0 deletions .github/workflows/test-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test egklib-core

on: [push]

jobs:
jvm:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-encrypt:jvmTest

node:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-encrypt:jsNodeTest

browser:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-encrypt:jsBrowserTest
19 changes: 19 additions & 0 deletions .github/workflows/test-encrypt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test egklib-encrypt

on: [push]

jobs:
jvm:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-core:jvmTest

node:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-core:jsNodeTest

browser:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-core:jsBrowserTest
19 changes: 19 additions & 0 deletions .github/workflows/test-trustee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test egklib-trustee

on: [push]

jobs:
jvm:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-trustee:jvmTest

node:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-trustee:jsNodeTest

browser:
uses: ./.github/workflows/run-gradle-task.yml
with:
gradle-task: egklib-trustee:jsBrowserTest
43 changes: 0 additions & 43 deletions .github/workflows/unit-tests.yml

This file was deleted.

0 comments on commit fd9a57c

Please sign in to comment.