mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 15:20:54 +03:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
# This workflow will build a Java project with Gradle
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
|
|
|
name: Build SSHJ
|
|
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
java12:
|
|
name: Build with Java 12
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 12
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 12
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: Build with Gradle
|
|
run: ./gradlew check
|
|
- name: Codecov
|
|
uses: codecov/codecov-action@v2
|
|
|
|
integration:
|
|
name: Integration test
|
|
needs: [java12]
|
|
runs-on: [ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
|
- uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 12
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: Build with Gradle
|
|
run: ./gradlew integrationTest
|
|
|