mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-27 11:10:31 -06:00
45 lines
911 B
YAML
45 lines
911 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
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-package
|
|
run: mvn package
|
|
|
|
- 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
|