Skip to content

Commit

Permalink
Customize template project name and build action
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Oct 28, 2023
1 parent 9feabb7 commit 26b4864
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 154 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ version: 2
updates:
- package-ecosystem: maven
directory: "/"
#avoids loback 1.4 to keep compatibility with java 8
ignore:
- dependency-name: "ch.qos.logback*"
update-types: ["version-update:semver-minor"]
schedule:
interval: weekly
day: "friday"
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build
on:
push:
# branches-ignore:
# - 'dependabot/**' #avoid duplicates: only run the PR, not the commit
# - 'gh-pages' #github pages do not trigger all tests
# tags-ignore:
# - 'v*' #avoid rerun existing commit on release
# pull_request:
# branches:
# - 'main'
jobs:
build:
runs-on: ubuntu-latest
#if: ${{ false }} # disable for now
permissions:
statuses: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'

- name: Build only, tests run in on-premises Jenkins
run: mvn test -U --no-transfer-progress
42 changes: 0 additions & 42 deletions .github/workflows/release.yml

This file was deleted.

83 changes: 0 additions & 83 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>samples-giis-template</name>
<name>retorch-st-eShopContainers</name>
<comment></comment>
<projects>
</projects>
Expand Down
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
[![Status](https://github.com/giis-uniovi/samples-giis-template/actions/workflows/test.yml/badge.svg)](https://github.com/giis-uniovi/samples-giis-template/actions)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=my%3Asamples-giis-template&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=my%3Asamples-giis-template)
[![Build Status](https://github.com/giis-uniovi/retorch-st-eShopContainers/actions/workflows/build.yml/badge.svg)](https://github.com/giis-uniovi/retorch-st-eShopContainers/actions)

# samples-giis-template

Template project, includes:
- Configuration of a maven multimodule java project
- Aggregated test reports (surefire and junit style)
- SonarQube static test (includes coverage results)
- Publish a snapshot for each branch to GitHub Packages
- Publish releases to Maven Central (deactivated)

See the general contribution policies and guidelines for *giis-uniovi* at
[CONTRIBUTING.md](https://github.com/giis-uniovi/.github/blob/main/profile/CONTRIBUTING.md).
# RETORCH eShopContainers End-to-End Test Suite
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.giis-uniovi</groupId>
<artifactId>samples-giis-template</artifactId>
<version>1.0.1-SNAPSHOT</version>
<artifactId>retorch-st-eShopContainers</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>samples-giis-template</name>
<description>Multimodule maven project template</description>
<url>http://github.com/giis-uniovi/samples-giis-template</url>
<name>retorch-st-eShopContainers</name>
<description>RETORCH eShopContainers End-to-End Test Suite</description>
<url>http://github.com/giis-uniovi/retorch-st-eShopContainers</url>
<organization>
<name>Software Engineering Research Group (GIIS) - Universidad de Oviedo, ES</name>
<url>http://giis.uniovi.es/</url>
Expand Down
4 changes: 2 additions & 2 deletions samples-giis-template-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.giis-uniovi</groupId>
<artifactId>samples-giis-template</artifactId>
<version>1.0.1-SNAPSHOT</version>
<artifactId>retorch-st-eShopContainers</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>samples-giis-template-bom</artifactId>
<packaging>pom</packaging>
Expand Down
4 changes: 2 additions & 2 deletions samples-giis-template-m1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.giis-uniovi</groupId>
<artifactId>samples-giis-template</artifactId>
<version>1.0.1-SNAPSHOT</version>
<artifactId>retorch-st-eShopContainers</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>samples-giis-template-m1</artifactId>
<packaging>jar</packaging>
Expand Down
4 changes: 2 additions & 2 deletions samples-giis-template-m2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.giis-uniovi</groupId>
<artifactId>samples-giis-template</artifactId>
<version>1.0.1-SNAPSHOT</version>
<artifactId>retorch-st-eShopContainers</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>samples-giis-template-m2</artifactId>
<packaging>jar</packaging>
Expand Down

0 comments on commit 26b4864

Please sign in to comment.