diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 482192fae..dcdd5d474 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -5,11 +5,26 @@ on: - cron: '14 3 * * *' jobs: + build_version_matrix: + runs-on: ubuntu-latest + steps: + - id: gh-api + shell: bash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + run: | + ghResults=$(gh api -H "Accept: application/vnd.github+json" /repos/"$REPO"/releases | jq -c '[.[] | ."tag_name"]') + echo "$ghResults" + echo "::set-output name=versions::$ghResults" + outputs: + versions: ${{ steps.gh-api.outputs.versions }} installer_test: + needs: [ build_version_matrix ] runs-on: ubuntu-latest strategy: matrix: - verifier-version: [v0.0.1, v1.0.0, v1.0.1, v1.0.2, v1.0.3, v1.1.0, v1.1.1, v1.2.0, v1.3.0, latest] + verifier-version: ${{ fromJson(needs.build_version_matrix.outputs.versions) }} steps: - name: Check out repository uses: actions/checkout@v3