-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.2 KB
/
test-suite.yaml
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
name: Test all actions
on: [push]
jobs:
test-suite:
runs-on: ubuntu-latest
environment: testing
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build image
uses: ./build
with:
image_name: github-actions-test
build_context: https://github.com/mendhak/docker-http-https-echo.git
- name: Test non-e2e tests
uses: ./run-tests
with:
image_name: github-actions-test
image_stage: dist
static: echo 'test static'
unit: echo 'test unit'
functional: echo 'test functional'
- name: Show image exposed ports
run: docker inspect --format='{{json .Config.ExposedPorts}}' "github-actions-test:dist" | jq 'keys[0]' | cut -d'/' -f1 | cut -d'"' -f2
shell: bash
- name: Test e2e test
uses: ./run-tests
with:
image_name: github-actions-test
e2e: echo 'e2e test'
e2e_port: 8080
image_stage: dist
- name: Test push to Humanitec
uses: ./humanitec-push-image
with:
humanitec_token: ${{ secrets.HUMANITEC_TOKEN }}
image_name: github-actions-test
image_stage: dist