-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CI for running tests and generating a deployable version of th…
…e test application * the generated artifact will only be uploaded if the action was started manually
- Loading branch information
1 parent
e95aedf
commit b7139ec
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Java CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
- name: Build with Maven | ||
run: mvn --batch-mode --update-snapshots verify | ||
|
||
- name: 'Upload Artifact' | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: csrfguard-latest-test-application | ||
path: | | ||
csrfguard-test/csrfguard-test-jsp/csrfguard-test-jsp-*SNAPSHOT.war | ||
csrfguard-test/csrfguard-test-jsp/csrfguard-test-jsp-*SNAPSHOT-executable.jar | ||
retention-days: 3 |