mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
Create pipeline.yml
This commit is contained in:
parent
dced1b4a44
commit
f4261add91
1 changed files with 53 additions and 0 deletions
53
.github/workflows/pipeline.yml
vendored
Normal file
53
.github/workflows/pipeline.yml
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
# This workflow will build a Java project with Maven
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
||||
|
||||
name: Java CI with Maven
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
compile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Compile with Maven
|
||||
run: mvn compile
|
||||
- name: Assemble with Gradle
|
||||
run: sh ./gradlew assemble
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Test with Maven
|
||||
run: mvn test
|
||||
- name: Gradle Check, Gradle Test is inclusive
|
||||
run: sh ./gradlew assemble check
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
||||
- name: Build with Gradle
|
||||
run: sh ./gradlew build
|
||||
#- name: Publish to GitHub Packages Apache Maven
|
||||
# run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ github.token }}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue