network/.github/workflows/integration.yml
Gris Ge daac665933 CI: Enable integration test in Github Action
Using container to run `ansible-playbook` against localhost.

To debug it, try

```bash
sudo DEBUG=1 ./.github/run_test.sh tests_bond_nm.yml
```

Attached two container files for CentOS 8 and CentOS Stream 8.
The container image is stored under quay:
    https://quay.io/organization/linux_system_roles

Only a small mount of tests has been chose in order to give stable CI
test feedback.

The github action CI will run two instances using above container image.

Signed-off-by: Gris Ge <fge@redhat.com>
2021-07-28 19:50:09 +08:00

24 lines
407 B
YAML

name: integration
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- base
jobs:
integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- os: "c8"
- os: "c8s"
steps:
- uses: actions/checkout@v2
- name: Run tests
run: sudo .github/run_test.sh --os ${{ matrix.os }}