Skip to content

Consolidate Rover Tests #12

Consolidate Rover Tests

Consolidate Rover Tests #12

on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
name: "Run End-To-End Tests"
jobs:
calculate_correct_version_ranges:
name: "Calculate Correct Version Ranges"
runs-on: ubuntu-24.04
outputs:
router_versions: ${{ steps.router-versions.outputs.router_versions }}
supergraph_versions: ${{ steps.supergraph-versions.outputs.supergraph_versions }}
steps:
- uses: actions/checkout@v4
name: "Checkout rover repo"
- run: |
npm install -g semver
name: "Install `semver` cli"
- run: |
ls -al
JSON=$(source get_latest_x_versions.sh 1 apollographql router router latest-1 1)
echo "router_versions=$JSON" >> "$GITHUB_OUTPUT"
id: "router-versions"
working-directory: ".github/scripts"
name: "Get latest Router versions"
- run: |
ls -al
JSON=$(source get_latest_x_versions.sh 1 apollographql federation-rs supergraph latest-2 2)
echo "supergraph_versions=$JSON" >> "$GITHUB_OUTPUT"
id: "supergraph-versions"
working-directory: ".github/scripts"
name: "Get latest Supergraph Plugin versions"
run-smokes:
name: "Run Tests"
needs:
- calculate_correct_version_ranges
uses: ./.github/workflows/smoke-test.yml
with:
composition-versions: '${{ needs.calculate_correct_version_ranges.outputs.supergraph_versions }}'
router-versions: '${{ needs.calculate_correct_version_ranges.outputs.router_versions }}'
secrets: inherit