Skip to content

Commit

Permalink
Added a sanity build action for Github [#561]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Dec 18, 2020
1 parent deb8f98 commit 04c6a08
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/develop-sanity-build.yml
@@ -0,0 +1,25 @@
name: "Run a sanity build whenever code is merged into develop."

on:
push:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Maven artifacts
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- name: Setup build environment
uses: actions/setup-java@v1
with:
java-version: 12
- name: Build code and run all unit tests
run: mvn test -Pci
2 changes: 1 addition & 1 deletion .github/workflows/publish-release-branch-changes.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
java-version: 12
- name: Create the release artifact
run: mvn package -Pci -Dassembly.name=RELEASE
run: mvn package -DskipTests -Pci -Dassembly.name=RELEASE
- name: Create pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand Down

0 comments on commit 04c6a08

Please sign in to comment.