-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.46 KB
/
test-suite-buildx.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
44
45
46
47
48
49
50
51
52
name: Test all actions
on: [push]
jobs:
test-suite:
runs-on: ubuntu-latest
environment: testing
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: Initialize cache
# uses: ./initialize-cache
# with:
# github_token: ${{ secrets.GH_TOKEN }}
#
# - name: Wipe images
# uses: ./wipe-workspace
- name: Test build local image
uses: ./build-with-cache
with:
image_name: github-actions-test
build_context: https://github.com/mendhak/docker-http-https-echo.git
- name: List images & containers
run: docker image ls && docker ps -a
- name: Test non-e2e tests
uses: ./run-tests
with:
image_name: github-actions-test
image_tag: latest
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:latest" | 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'
- name: Test push to Humanitec
uses: ./humanitec-push-image
with:
image_name: github-actions-test
humanitec_token: ${{ secrets.HUMANITEC_TOKEN }}
humanitec_org: checkout-charlie