-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (42 loc) · 1.11 KB
/
test.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: Ambassador test
on:
- push
jobs:
salt-render-test:
name: "Salt state rendering test"
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
strategy:
matrix:
image: [ "debian:bookworm", "ubuntu:focal" ]
env:
DOCKER_IMAGE: ${{ matrix.image }}
CONTEXT: syntax-test
steps:
- name: Check out repository code
uses: actions/checkout@v2
- run: .github/prepare.sh salt-test
- run: .github/test.sh salt-test syntax
# - run: .github/publish.sh docker # todo not yet available
saltcheck-test:
name: "Salt state execution test"
runs-on: ubuntu-latest
needs:
- salt-render-test
strategy:
matrix:
image: [ "debian:bookworm", "ubuntu:focal" ]
context: [ "base", "server" ]
env:
DOCKER_IMAGE: ${{ matrix.image }}
CONTEXT: ${{ matrix.context }}
TEST_LIVE_LOG: INFO
steps:
- name: Check out repository code
uses: actions/checkout@v2
- run: .github/prepare.sh salt-test
- run: .github/test.sh salt-test saltcheck