diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 5e03fdca..60868663 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -45,3 +45,45 @@ jobs: uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} + + integration-test: + + strategy: + matrix: + os: + - ubuntu-latest + java-version: + - 11 + - 17 + - 21 + + runs-on: ${{ matrix.os }} + + steps: + + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java-version }} + distribution: corretto + cache: maven + + - name: Bring up Skyramp worker + run: > + docker run + --detach + --restart always + -p8081:8081 + -p35142:35142 + --volume worker:/etc/skyramp + public.ecr.aws/j1n2c2p2/rampup/worker:latest + + - name: Install Skyramp + run: bash -c "$(curl -fsSL https://skyramp.dev/installer.sh)" + + - name: Apply Skyramp mock configurations + run: > + skyramp mocker apply + --address localhost:35142 + --path skyramp \ No newline at end of file