Sync main branch with Apache main branch #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
GO_VERSION: 1.22 | |
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 -y install \ | |
btrfs-progs \ | |
libgpgme-dev \ | |
libbtrfs-dev \ | |
libdevmapper-dev | |
- name: Setup golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
cache: true | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
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-latest | |
steps: | |
- name: Install packages | |
run: | | |
sudo apt-get update &&\ | |
sudo apt-get -y install --no-install-recommends \ | |
libgpgme-dev \ | |
libbtrfs-dev \ | |
libdevmapper-dev | |
- name: Setup golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run integration tests | |
run: | | |
cd container-builder | |
make ${{ matrix.container-engine }}-integration-test |