-
Notifications
You must be signed in to change notification settings - Fork 42
76 lines (72 loc) · 1.92 KB
/
check-container-builder.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Verify Container Builder
on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- main
paths:
- 'container-builder/**'
- '.github/workflows/check-container-builder.yml'
env:
REGISTRY_STORAGE_DELETE_ENABLED : true
jobs:
unit-tests:
concurrency:
group: kogito_serverless_operator_pr-unit-${{ github.head_ref }}
cancel-in-progress: true
timeout-minutes: 120
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Install package
run: |
sudo apt-get update &&\
sudo apt-get -y install --no-install-recommends \
btrfs-progs \
libgpgme-dev \
libbtrfs-dev \
libdevmapper-dev
- name: Setup golang
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
cd container-builder
make test
integration-tests:
needs: unit-tests
strategy:
matrix:
container-engine:
- docker
- kaniko-docker
fail-fast: false
concurrency:
group: kogito_serverless_operator_pr-integration-${{ matrix.container-engine }}-${{ github.head_ref }}
cancel-in-progress: true
timeout-minutes: 120
name: Integration tests (${{ matrix.container-engine }})
runs-on: ubuntu-22.04
steps:
- name: Install packages
run: |
sudo apt-get -y install \
libgpgme-dev \
libbtrfs-dev \
libdevmapper-dev
- name: Setup golang
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run integration tests
run: |
cd container-builder
make ${{ matrix.container-engine }}-integration-test