generated from plus3it/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (27 loc) · 879 Bytes
/
test.yml
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
name: Run test jobs
on:
workflow_call:
inputs:
mockstacktest-enable:
description: Controls whether to run the mockstacktest job
default: true
required: false
type: boolean
mockstacktest-pytest-args:
description: Passes PYTEST_ARGS to mockstacktest
default: -v
required: false
type: string
jobs:
mockstacktest:
if: inputs.mockstacktest-enable
runs-on: ubuntu-latest
steps:
- name: Clone this git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Start the mock AWS stack
run: make mockstack/up
- name: Apply Terraform test configs in mock AWS stack
run: make mockstack/pytest PYTEST_ARGS="${{ inputs.mockstacktest-pytest-args }}"
- name: Cleanup the mock AWS stack
run: make mockstack/clean