Skip to content

adding test cases for persistency+lifecycle #1469

adding test cases for persistency+lifecycle

adding test cases for persistency+lifecycle #1469

# *******************************************************************************
# Copyright (c) 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Linux - Build & Integration Test
on:
workflow_dispatch:
pull_request:
release:
types: [created]
push:
branches:
- main
# Do not flood CI with unneeded previous runs in PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') }}
jobs:
x86_64:
runs-on: ubuntu-latest
permissions:
contents: write # required to upload release assets
steps:
- name: Clean disk space
uses: eclipse-score/more-disk-space@v1
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.18.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
cache-save: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
- name: Install uv (required for SBOM license scanning)
uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- name: Build image and product SBOM
run: |
bazel build --lockfile_mode=error --config=linux-x86_64 --keep_going \
//images/linux_x86_64:image \
//:sbom
- name: Integration tests
run: |
bazel test --lockfile_mode=error --config=linux-x86_64 //feature_integration_tests/itf
- name: Upload product SBOM
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
with:
name: sbom-spdx
path: bazel-bin/sbom.spdx.json