Skip to content

Commit

Permalink
created build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
caitlinowens committed Nov 2, 2023
1 parent 92c649f commit 7688a18
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Java Apps - Run Tests and Package
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
test_and_build:
name: Test and build samples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: run tests
run: mvn clean test | tee test.log
- name: build artifacts
run: mvn clean package -Dmaven.test.skip
- name: set up artifacts
run: mkdir artifacts && cp test.log target/*.jar artifacts
- uses: actions/upload-artifact@v3
with:
name: Package
path: artifacts

0 comments on commit 7688a18

Please sign in to comment.