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 d529670 commit 5fd7b97
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/client-libs-backwards-compat1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This is a basic workflow to help you get started with Actions

name: Continuous Integration

on:
push:
paths-ignore:
- 'README.md'
- .github/workflows/skills-service-backward-compat.yml
- .github/workflows/client-libs-backward-compat.yml
pull_request:
paths-ignore:
- 'README.md'
- .github/workflows/skills-service-backward-compat.yml
- .github/workflows/client-libs-backward-compat.yml
workflow_dispatch:

jobs:
# ------------------------
get_skills_service_versions:
runs-on: ubuntu-latest
outputs:
services: ${{ steps.generate-matrix.outputs.services }}
versions: ${{ steps.generate-matrix.outputs.versions }}
steps:
- name: Generate Matrix
id: generate-matrix
run: |
res=`curl -s https://api.github.com/repos/NationalSecurityAgency/skills-service/releases`
echo $res
VERSIONS='${{ toJSON(res.versions) }}'
echo ::set-output name=versions::${VERSIONS}
# ------------------------
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/skills-service-backward-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
strategy:
fail-fast: false
matrix:
skillsJsVersion: [ '3.3.0', '3.3.1', '3.4.0']
skillsJsVersion: [ '3.1.1', '3.2.0', '3.3.0', '3.3.1', '3.4.0', '3.4.1', '3.5.0']

services:
postgres:
Expand Down

0 comments on commit 5fd7b97

Please sign in to comment.