mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
codecov impl
This commit is contained in:
parent
11e4c8cc49
commit
bca21e86b8
63
.github/workflows/pr-testing-cov.yml
vendored
Normal file
63
.github/workflows/pr-testing-cov.yml
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
name: nb-pr-test-cov
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- jeffb/cc-test
|
||||||
|
# pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
name: checkout nosqlbench
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
name: setup java
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
java-package: jdk
|
||||||
|
architecture: x64
|
||||||
|
distribution: 'temurin'
|
||||||
|
|
||||||
|
- name: Cache Maven packages
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.m2
|
||||||
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-m2
|
||||||
|
|
||||||
|
- name: mvn verify
|
||||||
|
run: mvn verify
|
||||||
|
|
||||||
|
- name: Capture
|
||||||
|
if: success() || failure()
|
||||||
|
run: tar -cvf logfiles.tar [a-zA-Z]**/logs/*
|
||||||
|
|
||||||
|
- name: Archive Test Results
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: test-results
|
||||||
|
path: logfiles.tar
|
||||||
|
|
||||||
|
- name: Upload to Codecov
|
||||||
|
uses: codecov/codecov-action@v3
|
||||||
|
|
||||||
|
- name: package surefire artifacts
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
rm -rf artifacts
|
||||||
|
mkdir artifacts
|
||||||
|
find . -type d -name "*surefire*" -exec cp --parents -R {} artifacts/ \;
|
||||||
|
zip -r artifacts.zip artifacts
|
||||||
|
- uses: actions/upload-artifact@master
|
||||||
|
name: upload surefire-artifacts
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: surefire-artifacts
|
||||||
|
path: artifacts.zip
|
Loading…
Reference in New Issue
Block a user