Skip to content

Commit

Permalink
Merge pull request #133 from wonderbird/ci/save-energy
Browse files Browse the repository at this point in the history
ci: save energy
  • Loading branch information
wonderbird authored Mar 8, 2024
2 parents 6bded60 + 65bb510 commit b52d88e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 34 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
name: Build and Publish

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]

Expand All @@ -27,7 +29,7 @@ jobs:
distribution: 'temurin'

- name: Build and Test with Gradle
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
uses: gradle/gradle-build-action@v2
with:
arguments: clean build test cucumber jacocoTestReport

Expand Down
47 changes: 14 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ http-client.private.env.json
####


# Created by https://www.toptal.com/developers/gitignore/api/java,gradle,intellij,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=java,gradle,intellij,visualstudiocode
# Created by https://www.toptal.com/developers/gitignore/api/java,gradle,intellij+all,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=java,gradle,intellij+all,visualstudiocode

### Intellij ###
### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

Expand Down Expand Up @@ -94,35 +94,14 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
### Intellij+all Patch ###
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.

# *.iml
# modules.xml
.idea/misc.xml
# *.ipr

# Sonarlint plugin
# https://plugins.jetbrains.com/plugin/7973-sonarlint
.idea/**/sonarlint/

# SonarQube Plugin
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
.idea/**/sonarIssues.xml
.idea/*

# Markdown Navigator plugin
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator-enh.xml
.idea/**/markdown-navigator/

# Cache file creation bug
# See https://youtrack.jetbrains.com/issue/JBR-2257
.idea/$CACHE_FILE$

# CodeStream plugin
# https://plugins.jetbrains.com/plugin/12206-codestream
.idea/codestream.xml
!.idea/codeStyles
!.idea/runConfigurations

### Java ###
# Compiled class file
Expand Down Expand Up @@ -169,8 +148,6 @@ replay_pid*
.history
.ionide

# Support for Project snippet scope

### Gradle ###
.gradle
**/build/
Expand All @@ -194,4 +171,8 @@ gradle-app.setting
# JDT-specific (Eclipse Java Development Tools)
.classpath

# End of https://www.toptal.com/developers/gitignore/api/java,gradle,intellij,visualstudiocode
### Gradle Patch ###
# Java heap dump
*.hprof

# End of https://www.toptal.com/developers/gitignore/api/java,gradle,intellij+all,visualstudiocode
4 changes: 4 additions & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=17.0.4-tem
gradle=7.6.3
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ an [Open Source License](https://www.jetbrains.com/community/opensource/) for th

## Build, Test, Run

### Prerequisites

The build is tested with the following versions:

- [Java 17.0.4](https://adoptopenjdk.net/)
- [Gradle 7.6.3](https://gradle.org/)

### Build the Solution and Run the Tests

```sh
Expand Down

0 comments on commit b52d88e

Please sign in to comment.