Skip to content

Fix official pipeline #5

Fix official pipeline

Fix official pipeline #5

name: Smoke Test - Java 17 on Functions V4
on:
workflow_dispatch:
push:
branches: [ main, dev ]
paths:
- 'src/**'
- 'test/SmokeTests/OOProcSmokeTests/durableJava/**'
pull_request:
branches: [ main, dev ]
paths:
- 'src/**'
- 'test/SmokeTests/OOProcSmokeTests/durableJava/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Rename host.json
run: |
mv test/SmokeTests/OOProcSmokeTests/durableJava/host.json test/SmokeTests/OOProcSmokeTests/durableJava/host.json.temp2
mv test/SmokeTests/OOProcSmokeTests/durableJava/host.json.temp1 test/SmokeTests/OOProcSmokeTests/durableJava/host.json
- name: Build with Maven
run: mvn -B clean package
working-directory: test/SmokeTests/OOProcSmokeTests/durableJava
- name: Re-rename host.json
run: |
mv test/SmokeTests/OOProcSmokeTests/durableJava/host.json test/SmokeTests/OOProcSmokeTests/durableJava/host.json.temp1
mv test/SmokeTests/OOProcSmokeTests/durableJava/host.json.temp2 test/SmokeTests/OOProcSmokeTests/durableJava/host.json
- name: Run V4 Java 17 Smoke Test
run: test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/durableJava/Dockerfile -HttpStartPath api/StartOrchestration -TestWithCustomInstanceId
shell: pwsh