I have create this integration test that working fine, but it's support one why version. I need to run the integration test for all version that support my code, but i can't understand what the best way to do.
name: Unstable release deploy to MyGet
on:
push:
branches:
- dev
jobs:
build-test-package:
runs-on: ubuntu-latest
env:
MyNode_NodeEndPoint: "http://127.0.0.1/"
MyNode_NodeVersion: "1.0.0"
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Setup Node.js environment
uses: actions/setup-node@v3.3.0
- name: Start MyNodes
run: MyNodeJS start "${{env.MyNode_NodeVersion}}"
- name: Run integration tests
run: dotnet test --configuration Release
- name: Generate nuget package
run: dotnet pack --configuration Release -o nupkg
- name: Push packages
run: dotnet nuget push './nupkg/*.nupkg' --api-key ${{secrets.MYGET_APIKEY}} --source https://www.myget.org/F/MyNode/api/v3/index.json
i need to repeat test for each version, so i need to create an array of versione
MyNode_NodeVersion: "1.0.0" MyNode_NodeVersion: "1.0.1" MyNode_NodeVersion: "1.0.2"
What is the best way?