Skip to content

Update GitHub Actions to use latest versions of checkout and setup-ja… #3

Update GitHub Actions to use latest versions of checkout and setup-ja…

Update GitHub Actions to use latest versions of checkout and setup-ja… #3

Workflow file for this run

name: Build
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Install Copilot SDK
run: |
# Clone and install Copilot SDK (until it's published to Maven Central)
git clone https://github.com/brunoborges/copilot-sdk.git /tmp/copilot-sdk
cd /tmp/copilot-sdk/java
mvn install -DskipTests -q
- name: Build with Maven
run: mvn -B clean verify --file pom.xml
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: jmeter-copilot-plugin
path: target/jmeter-copilot-plugin-*.jar
if-no-files-found: error