-
Notifications
You must be signed in to change notification settings - Fork 18
73 lines (63 loc) · 1.7 KB
/
Copy pathwiremock.yml
File metadata and controls
73 lines (63 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: LocalStack WireMock Extension Tests
on:
schedule:
- cron: '0 2 * * 1-5'
pull_request:
branches:
- main
paths:
- .github/workflows/wiremock.yml
- 'wiremock/**'
push:
branches:
- main
paths:
- .github/workflows/wiremock.yml
- 'wiremock/**'
workflow_dispatch:
env:
LOCALSTACK_DISABLE_EVENTS: "1"
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
jobs:
integration-tests:
name: Run WireMock Extension Tests
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 10
strategy:
matrix:
tag:
- latest
- dev
env:
IMAGE_NAME: localstack/localstack-pro:${{matrix.tag}}
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Terraform
uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1
- name: Set up LocalStack and extension
run: |
cd wiremock
docker pull "$IMAGE_NAME"
docker pull wiremock/wiremock
docker pull public.ecr.aws/lambda/python:3.12
pip install localstack terraform-local awscli-local[ver1]
make install
make lint
make dist
localstack extensions -v install file://"$(ls ./dist/localstack_wiremock-*.tar.gz)"
DEBUG=1 localstack start -d
localstack wait
- name: Run sample app test
run: |
cd wiremock
make sample-oss
- name: Print logs
if: always()
run: |
localstack logs
localstack stop