Skip to content

fix: update repo actions #17

fix: update repo actions

fix: update repo actions #17

Workflow file for this run

name: Build and Test

Check failure on line 1 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-test.yml

Invalid workflow file

reusable workflows should be referenced at the top-level `jobs.*.uses' key, not within steps
on:
pull_request:
branches:
- main
jobs:
build-and-test-xap-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Build and Test
run: ./gradlew clean build
run-integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Run Integration Tests
uses: 'ExpediaGroup/xap-java-sdk/.github/workflows/run-integration-tests.yaml@main'
with:
branch: main
jdk: '11'
distribution: 'corretto'