Skip to content

JPERF-1406 Revert ordering fix in LoadThreadFactory implementor #80

JPERF-1406 Revert ordering fix in LoadThreadFactory implementor

JPERF-1406 Revert ordering fix in LoadThreadFactory implementor #80

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
inputs:
release:
description: 'Release? yes/no'
default: 'no'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache Gradle
uses: actions/cache@v2
with:
path: ~/.gradle
key: ${{ runner.os }}-${{ hashFiles('gradle') }}
- name: Build
run: ./gradlew build
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v2
with:
name: test-reports
path: build/reports/tests
- name: Upload VU Artifacts
if: always()
uses: actions/upload-artifact@v2
with:
name: vu-artifacts
path: |
build/vu-nodes
virtual-users.log
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
needs: build
if: github.event.inputs.release == 'yes'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache Gradle
uses: actions/cache@v2
with:
path: ~/.gradle
key: ${{ runner.os }}-${{ hashFiles('gradle') }}
- name: Get publish token
id: publish-token
uses: atlassian-labs/artifact-publish-token@v1.0.1
- name: Release
env:
atlassian_private_username: ${{ steps.publish-token.outputs.artifactoryUsername }}
atlassian_private_password: ${{ steps.publish-token.outputs.artifactoryApiKey }}
run: |
./gradlew release \
-Prelease.customUsername=${{ github.actor }} \
-Prelease.customPassword=${{ github.token }}
./gradlew publish