Update GitHub Actions to use latest versions of checkout and setup-ja… #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |