-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (31 loc) · 921 Bytes
/
api-spec-tests.yml
File metadata and controls
41 lines (31 loc) · 921 Bytes
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
name: API Specification Tests
on:
push:
branches: [ "main" ]
pull_request:
env:
IMAGE_NAME: nutsfoundation/hashicorp-vault-proxy
TEST_TAG: test
jobs:
build_and_test:
name: Build and test API
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v6
with:
context: .
load: true
tags: ${{ env.IMAGE_NAME }}:${{ env.TEST_TAG }}
- name: Setup
working-directory: ./test
run: |
docker compose up --wait
- name: Run API tests
working-directory: ./test
run: |
docker run --network=vault-proxy-test --volume=${PWD}/postman-testsuite.json:/opt/postman-testsuite.json:ro postman/newman run /opt/postman-testsuite.json --env-var="api_address=http://proxy:8210"