Skip to content

unify push/PR workflows, add global-ci #4

unify push/PR workflows, add global-ci

unify push/PR workflows, add global-ci #4

Workflow file for this run

name: Tackle Pathfinder CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
java-package: jdk
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: ./mvnw -U -B test
integration-native-test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
java-package: jdk
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: ./mvnw -U -B verify -Pnative -Dquarkus-profile=test -Dquarkus.native.additional-build-args=--allow-incomplete-classpath
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
java-package: jdk
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Generate jacoco report
run: ./mvnw -U verify -Pjacoco
- uses: codecov/[email protected]
with:
file: ./target/site/jacoco/jacoco.xml
name: codecov
build-for-global-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: save tackle-pathfinder image
run: |
docker build -f src/main/docker/Dockerfile.native-multi-stage . -t quay.io/konveyor/tackle-pathfinder:1.3.0-native
docker save -o /tmp/tackle-pathfinder.tar quay.io/konveyor/tackle-pathfinder:1.3.0-native
- name: Upload tackle-pathfinder image as artifact
uses: actions/upload-artifact@v3
with:
name: tackle-pathfinder
path: /tmp/tackle-pathfinder.tar
retention-days: 1
test-integration:
needs: build-for-global-ci
uses: konveyor/ci/.github/workflows/global-ci.yml@main
with:
component_name: tackle-pathfinder