deb-bootc-image-builder/.github/workflows/tests.yml
Workflow config file is invalid. Please check your config file: yaml: line 37: mapping values are not allowed in this context
robojerk 126ee1a849
Some checks failed
particle-os CI / Test particle-os (push) Failing after 1s
particle-os CI / Integration Test (push) Has been skipped
particle-os CI / Security & Quality (push) Failing after 1s
Test particle-os Basic Functionality / test-basic (push) Failing after 1s
particle-os CI / Build and Release (push) Has been skipped
cleanup
2025-08-27 12:30:24 -07:00

44 lines
881 B
YAML

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Install test dependencies
run: |
sudo apt-get update
sudo apt-get install -y podman qemu-utils ostree
- name: Run Go unit tests
working-directory: ./bib
run: go test -v ./...
- name: Build binary
working-directory: ./
run: ./build.sh
- name: Run integration tests
run: |
# Install Python test dependencies
pip install pytest
# Run integration tests
pytest -v test/