Skip to content

Commit

Permalink
chore: Refactored acceptance test matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Hipwell <[email protected]>
  • Loading branch information
stevehipwell committed Oct 25, 2024
1 parent 0c50865 commit e5bf60f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ jobs:
- uses: actions/checkout@v4
- id: get_version_matrix
shell: bash
run: scripts/get-version-matrix.sh
run: |
set -euo pipefail
{
echo "terraform_versions=$(curl -sSfL https://endoflife.date/api/terraform.json | jq -rc '[sort_by(.releaseDate) | reverse | .[0:4] | .[].latest] + ["1.5.7"]')"
echo "k8s_versions=$(curl -sSfL https://endoflife.date/api/kubernetes.json | jq -rc '[sort_by(.releaseDate) | reverse | .[0:4] | .[].latest]')"
} >> "${GITHUB_OUTPUT}"
outputs:
terraform_versions: ${{ steps.get_version_matrix.outputs.terraform_versions }}
k8s_versions: ${{ steps.get_version_matrix.outputs.k8s_versions }}
Expand Down
10 changes: 0 additions & 10 deletions scripts/get-version-matrix.sh

This file was deleted.

0 comments on commit e5bf60f

Please sign in to comment.