Skip to content

Commit

Permalink
#251: run skills-service backward compat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-may committed Oct 4, 2024
1 parent 8844639 commit 7bd9939
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/client-libs-backwards-compat1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This is a basic workflow to help you get started with Actions

name: Client Libs Backward Compatibility - New

on:
Expand All @@ -16,7 +14,6 @@ on:
workflow_dispatch:

jobs:
# ------------------------
get_skills_service_versions:
runs-on: ubuntu-latest
outputs:
Expand All @@ -27,20 +24,18 @@ jobs:
id: generate-matrix
run: |
RESPONSE=$(curl -s -X GET 'https://api.github.com/repos/NationalSecurityAgency/skills-service/releases')
TAG_NAMES=$(echo "$RESPONSE" | jq -r '.[] | .tag_name')
TAG_NAMES=$(echo "$RESPONSE" | jq -r '.[] | .tag_name | limit(5; .)')
echo "TAG_NAMES=$TAG_NAMES"
# VERSIONS='${{ toJSON(RESPONSE.versions) }}'
# echo ::set-output name=versions::${VERSIONS}
echo ::set-output name=versions::${TAG_NAMES}
# ------------------------
# run_backward_compatibility_tests:
# runs-on: ubuntu-latest
# needs:
# - get_skills_service_versions
# strategy:
# matrix:
# version: ${{ fromJSON(needs.get_skills_service_versions.outputs.versions) }}
# steps:
# - name: Matrix => (${{ matrix.version}})
# run: |
# echo ${{ matrix.version }}
run_backward_compatibility_tests:
runs-on: ubuntu-latest
needs:
- get_skills_service_versions
strategy:
matrix:
version: ${{ fromJSON(needs.get_skills_service_versions.outputs.versions) }}
steps:
- name: Matrix => (${{ matrix.version}})
run: |
echo ${{ matrix.version }}
6 changes: 3 additions & 3 deletions .github/workflows/skills-service-backward-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Skills-service Backward Compatibility
# paths-ignore:
# - 'README.md'
on:
push:
paths-ignore:
- 'README.md'
# push:
# paths-ignore:
# - 'README.md'
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
Expand Down

0 comments on commit 7bd9939

Please sign in to comment.