-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (49 loc) · 1.49 KB
/
run-integration-tests.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
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
name: Integration Tests
on:
pull_request:
branches:
- main
- "releases/*"
push:
branches:
- main
- "releases/*"
workflow_dispatch:
jobs:
run-integration-test:
name: Run Integration Tests
runs-on: ubuntu-latest
env:
KUBECONFIG: /home/runner/.kube/config
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
rm -rf node_modules/
npm install
- name: Build
run: npm run build
- name: Execute artifact-substitute action
uses: ./
with:
images: |
nginx:custom-tag
contoso:latest
manifests: |
test/integration/manifests/
id: artifact-sub
- name: Ensure output matches expected
uses: OliverMKing/yaml-compare@v2
with:
file1Path: ${{ steps.artifact-sub.outputs.directory }}/test-ingress.yml
file2Path: test/integration/expected/test-ingress.yml
- name: Ensure output matches expected
uses: OliverMKing/yaml-compare@v2
with:
file1Path: ${{ steps.artifact-sub.outputs.directory }}/test-service.yml
file2Path: test/integration/expected/test-service.yml
- name: Ensure output matches expected
uses: OliverMKing/yaml-compare@v2
with:
file1Path: ${{ steps.artifact-sub.outputs.directory }}/nested-test-ingress.yaml
file2Path: test/integration/expected/nested/nested-test-ingress.yaml