@@ -19,27 +19,19 @@ jobs:
1919 matrix :
2020 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
2121
22- services :
23- redis :
24- image : redis
25- ports :
26- - 6379:6379
27- dynamodb :
28- image : amazon/dynamodb-local
29- ports :
30- - 8000:8000
31- consul :
32- image : hashicorp/consul
33- ports :
34- - 8500:8500
35-
3622 steps :
3723 - uses : actions/checkout@v4
3824 - name : Set up Python ${{ matrix.python-version }}
3925 uses : actions/setup-python@v5
4026 with :
4127 python-version : ${{ matrix.python-version }}
4228
29+ - uses : launchdarkly/gh-actions/actions/persistent-stores@persistent-stores-v0
30+ with :
31+ redis : true
32+ consul : true
33+ dynamodb : true
34+
4335 - name : Install poetry
4436 uses : abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
4537
6254 - name : start contract test service
6355 run : make start-contract-test-service-bg
6456
65- - uses : launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.2
57+ - uses : launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1
6658 with :
6759 test_service_port : 9000
6860 token : ${{ secrets.GITHUB_TOKEN }}
@@ -86,36 +78,11 @@ jobs:
8678 with :
8779 python-version : ${{ matrix.python-version }}
8880
89- - name : Setup DynamoDB
90- run : |
91- $ProgressPreference = "SilentlyContinue"
92- iwr -outf dynamo.zip https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.zip
93- mkdir dynamo
94- Expand-Archive -Path dynamo.zip -DestinationPath dynamo
95- cd dynamo
96- cmd /c "START /b java -Djava.library.path=./DynamoDBLocal_lib -jar ./DynamoDBLocal.jar"
97-
98- - name : Setup Consul
99- run : |
100- $ProgressPreference = "SilentlyContinue"
101- iwr -outf consul.zip https://releases.hashicorp.com/consul/1.4.2/consul_1.4.2_windows_amd64.zip
102- mkdir consul
103- Expand-Archive -Path consul.zip -DestinationPath consul
104- cd consul
105- sc.exe create "Consul" binPath="$(Get-Location)/consul.exe agent -dev"
106- sc.exe start "Consul"
107-
108- - name : Setup Redis
109- run : |
110- $ProgressPreference = "SilentlyContinue"
111- iwr -outf redis.zip https://github.com/MicrosoftArchive/redis/releases/download/win-3.0.504/Redis-x64-3.0.504.zip
112- mkdir redis
113- Expand-Archive -Path redis.zip -DestinationPath redis
114- cd redis
115- ./redis-server --service-install
116- ./redis-server --service-start
117- Start-Sleep -s 5
118- ./redis-cli ping
81+ - uses : launchdarkly/gh-actions/actions/persistent-stores@persistent-stores-v0
82+ with :
83+ redis : true
84+ consul : true
85+ dynamodb : true
11986
12087 - name : Install poetry
12188 uses : abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
0 commit comments