Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
qtc-de committed Dec 10, 2024
1 parent 8d89301 commit e454f7b
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 185 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/develop-example-server.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/example-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: example server

on:

push:
branches:
- master
- develop
paths:
- 'docker/jmx-example-server/resources/server/**'
- '.github/workflows/example-server.yml'


jobs:
build:

runs-on: ubuntu-latest

steps:
- name: ${{ github.event.repository.name }}
uses: actions/checkout@v4

- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
cache: maven
cache-dependency-path: docker/jmx-example-server/resources/server/pom.xml

- name: Build with Maven
run: cd docker/jmx-example-server/resources/server && mvn -B package --file pom.xml

- name: Archive generated JAR file
uses: actions/upload-artifact@v4
with:
name: compiled-example-server
path: docker/jmx-example-server/resources/server/target/*.jar
37 changes: 0 additions & 37 deletions .github/workflows/feat.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/master-example-server.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/master.yml

This file was deleted.

34 changes: 17 additions & 17 deletions .github/workflows/develop.yml → .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
name: develop maven CI
name: maven CI

on:
push:

branches:
- master
- develop
- 'feat/**'
paths:
- 'beanshooter/pom.xml'
- 'beanshooter/src/**'
- 'tonka-bean/pom.xml'
- 'tonka-bean/src/**'
- 'pom.xml'
- '.github/workflows/maven-ci.yml'

pull_request:

branches:
- master
- develop
- 'feat/**'
paths:
- 'beanshooter/pom.xml'
- 'beanshooter/src/**'
- 'tonka-bean/pom.xml'
- 'tonka-bean/src/**'
- 'pom.xml'
- '.github/workflows/maven-ci.yml'

jobs:
build:
Expand All @@ -30,26 +34,22 @@ jobs:

steps:

- uses: actions/checkout@v2
- name: ${{ github.event.repository.name }}
uses: actions/checkout@v4

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/setup-java@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
distribution: 'temurin'
java-version: 8
cache: maven
cache-dependency-path: 'beanshooter/pom.xml'

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Archive generated JAR file
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: beanshooter-develop-artifact
path: target/beanshooter-*
name: beanshooter-compiled-jars
path: target/*.jar

0 comments on commit e454f7b

Please sign in to comment.