Consolidate Rover Tests #16
Workflow file for this run
This file contains 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
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: | |
- name: "Checkout rover repo" | |
uses: actions/checkout@v4 | |
- name: "Install `semver` cli" | |
run: | | |
npm install -g semver | |
- name: "Get latest Router versions" | |
id: "router-versions" | |
working-directory: ".github/scripts" | |
run: | | |
ls -al | |
JSON=$(source get_latest_x_versions.sh 1 apollographql router router latest-1 1) | |
echo "router_versions=$JSON" >> "$GITHUB_OUTPUT" | |
- name: "Get latest Supergraph Plugin versions" | |
id: "supergraph-versions" | |
working-directory: ".github/scripts" | |
run: | | |
ls -al | |
JSON=$(source get_latest_x_versions.sh 1 apollographql federation-rs supergraph latest-2 2) | |
echo "supergraph_versions=$JSON" >> "$GITHUB_OUTPUT" | |
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 |