Skip to content

LMD v2.0.1

LMD v2.0.1 #299

Workflow file for this run

name: LMD Smoke Tests
on:
push:
branches: [master, '2.*']
pull_request:
branches: [master, '2.*']
jobs:
smoke-test:
uses: rfxn/batsman/.github/workflows/test.yml@v1.4.2
with:
project-name: lmd
os-matrix: '["debian12","centos6","centos7","rocky8","rocky9","rocky10","ubuntu2004","ubuntu2404"]'
timeout: 25
file-groups: 3
reports: true
docker-run-flags: '-e BATS_TEST_TIMEOUT=180'
yara-x:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: docker/setup-buildx-action@v3
- name: Build base image (debian12 for yara-x)
uses: docker/build-push-action@v6
with:
context: tests/infra
file: tests/infra/dockerfiles/Dockerfile.debian12
tags: lmd-base-debian12
load: true
cache-from: type=gha,scope=base-debian12
cache-to: type=gha,mode=max,scope=base-debian12
- name: Build yara-x image
run: |
docker build \
--build-arg BASE_IMAGE=lmd-base-debian12 \
-f tests/Dockerfile.yara-x \
-t lmd-test-yara-x .
- name: Run yara-x tests
run: |
mkdir -p "${{ runner.temp }}/reports"
docker run --rm \
-e BATS_TEST_TIMEOUT=180 \
-v "${{ runner.temp }}/reports:/reports" \
lmd-test-yara-x \
bats --formatter tap \
--report-formatter junit --output /reports \
/opt/tests/
- name: Upload yara-x test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: test-reports-lmd-yara-x
path: ${{ runner.temp }}/reports/
retention-days: 14
if-no-files-found: ignore
uat:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: docker/setup-buildx-action@v3
- name: Build base image
uses: docker/build-push-action@v6
with:
context: tests/infra
file: tests/infra/dockerfiles/Dockerfile.debian12
tags: lmd-base-debian12
load: true
cache-from: type=gha,scope=base-debian12
cache-to: type=gha,mode=max,scope=base-debian12
- name: Build test image
run: |
docker build \
--build-arg BASE_IMAGE=lmd-base-debian12 \
-f tests/Dockerfile \
-t lmd-test-debian12 .
- name: Run UAT scenarios
run: make -C tests uat
- name: Upload UAT results
if: always()
uses: actions/upload-artifact@v4
with:
name: uat-results
path: /tmp/uat-output/
retention-days: 14
if-no-files-found: ignore