Skip to content

.github/workflows/run-smokes.yml #21

.github/workflows/run-smokes.yml

.github/workflows/run-smokes.yml #21

Workflow file for this run

on:
schedule:
- cron: '0 9 * * *'
jobs:
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 3 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 3 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:
uses: ./.github/workflows/smoke-test.yml
needs: calculate_correct_version_ranges
with:
composition-versions: '${{ needs.calculate_correct_version_ranges.outputs.supergraph_versions }}'
router-versions: '${{ needs.calculate_correct_version_ranges.outputs.router_versions }}'