Skip to content

Commit

Permalink
Merge pull request #3 from spyrkob/workflows
Browse files Browse the repository at this point in the history
Add test workflow
  • Loading branch information
spyrkob authored Jan 19, 2024
2 parents 5a2ddc6 + ddebac4 commit eb1e71b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
push:
branches:
- main
paths-ignore:
- '.gitignore'
- 'README.md'
pull_request:
paths-ignore:
- '.gitignore'
- 'README.md'

jobs:
build:
name: 'Build and test'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
cache: maven
- name: Build and test
run: mvn clean install
- uses: actions/upload-artifact@v2
if: failure()
with:
name: surefire-reports
path: '**/surefire-reports/*.txt'


0 comments on commit eb1e71b

Please sign in to comment.