| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dced1b4 commit f4261ad
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,53 @@ | |||
| 1 | + # This workflow will build a Java project with Maven | ||
| 2 | + # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
| 3 | + | ||
| 4 | + name: Java CI with Maven | ||
| 5 | + | ||
| 6 | + on: | ||
| 7 | + push: | ||
| 8 | + branches: [ master ] | ||
| 9 | + pull_request: | ||
| 10 | + branches: [ master ] | ||
| 11 | + | ||
| 12 | + jobs: | ||
| 13 | + compile: | ||
| 14 | + runs-on: ubuntu-latest | ||
| 15 | + steps: | ||
| 16 | + - uses: actions/checkout@v2 | ||
| 17 | + - name: Set up JDK 1.8 | ||
| 18 | + uses: actions/setup-java@v1 | ||
| 19 | + with: | ||
| 20 | + java-version: 1.8 | ||
| 21 | + - name: Compile with Maven | ||
| 22 | + run: mvn compile | ||
| 23 | + - name: Assemble with Gradle | ||
| 24 | + run: sh ./gradlew assemble | ||
| 25 | + test: | ||
| 26 | + runs-on: ubuntu-latest | ||
| 27 | + steps: | ||
| 28 | + - uses: actions/checkout@v2 | ||
| 29 | + - name: Set up JDK 1.8 | ||
| 30 | + uses: actions/setup-java@v1 | ||
| 31 | + with: | ||
| 32 | + java-version: 1.8 | ||
| 33 | + - name: Test with Maven | ||
| 34 | + run: mvn test | ||
| 35 | + - name: Gradle Check, Gradle Test is inclusive | ||
| 36 | + run: sh ./gradlew assemble check | ||
| 37 | + build: | ||
| 38 | + runs-on: ubuntu-latest | ||
| 39 | + steps: | ||
| 40 | + - uses: actions/checkout@v2 | ||
| 41 | + - name: Set up JDK 1.8 | ||
| 42 | + uses: actions/setup-java@v1 | ||
| 43 | + with: | ||
| 44 | + java-version: 1.8 | ||
| 45 | + - name: Build with Maven | ||
| 46 | + run: mvn -B package --file pom.xml | ||
| 47 | + - name: Build with Gradle | ||
| 48 | + run: sh ./gradlew build | ||
| 49 | + #- name: Publish to GitHub Packages Apache Maven | ||
| 50 | + # run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml | ||
| 51 | + # env: | ||
| 52 | + # GITHUB_TOKEN: ${{ github.token }} | ||
| 53 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments