From 8f4bae5c00567fc5e9bc7bb6224346cccea5d29a Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Tue, 21 May 2024 14:46:43 +0200 Subject: [PATCH] ci: remove test workflow, test run in testing-farm now --- .github/workflows/build.yml | 26 ++++++++++++ .github/workflows/integration_tests.yml | 53 ------------------------- README.md | 2 +- 3 files changed, 27 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/integration_tests.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..bc2b6715 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +--- + +name: Build test +on: + push: + pull_request: + branches: [ main, rhel*-branch ] + release: + types: [ published, created ] + +permissions: + contents: read + +jobs: + buildCheck: + runs-on: ubuntu-latest + + steps: + - name: Repository checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: sudo apt install -y libpopt-dev libselinux1-dev libnewt-dev gettext + + - name: Build & install + run: make all && make install DESTDIR=/tmp/chkconfig diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml deleted file mode 100644 index 3cd512cd..00000000 --- a/.github/workflows/integration_tests.yml +++ /dev/null @@ -1,53 +0,0 @@ ---- - -name: Integration tests -on: - push: - pull_request: - branches: [ main, rhel*-branch ] - release: - types: [ published, created ] - -permissions: - contents: read - -jobs: - buildCheck: - runs-on: ubuntu-22.04 - - steps: - - name: Repository checkout - uses: actions/checkout@v4 - - - name: Install dependencies - run: sudo apt install -y libpopt-dev libselinux1-dev libnewt-dev gettext - - - name: Build & install - run: make all && make install DESTDIR=/tmp/chkconfig - - unitTests: - runs-on: ubuntu-22.04 - defaults: - run: - shell: bash - - needs: buildCheck - - steps: - - name: Repository checkout - uses: actions/checkout@v4 - - - name: Clone beakerlib repository - run: git clone --depth=1 https://github.com/beakerlib/beakerlib.git - - - name: Build and install beakerlib - run: cd beakerlib && sudo make && sudo make install && cd - - - - name: Install dependencies required by Makefile - run: sudo apt install -y libpopt-dev libselinux1-dev libnewt-dev gettext - - - name: Install dependencies required by test-alternatives.sh - run: sudo apt install -y libxml2-dev libxslt-dev python3-dev python3-lxml - - - name: Build && Test - run: make check diff --git a/README.md b/README.md index 0e25753d..b34596f5 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# chkconfig | [![CI Status](https://github.com/fedora-sysv/chkconfig/workflows/Integration%20tests/badge.svg)](https://github.com/fedora-sysv/chkconfig/actions?query=workflow%3AIntegration+tests) [![CodeQL](https://github.com/fedora-sysv/chkconfig/actions/workflows/codeql.yml/badge.svg)](https://github.com/fedora-sysv/chkconfig/actions/workflows/codeql.yml) +# chkconfig | [![CI Status](https://github.com/fedora-sysv/chkconfig/workflows/Build%20test/badge.svg)](https://github.com/fedora-sysv/chkconfig/actions?query=workflow%3ABuild+test) [![CodeQL](https://github.com/fedora-sysv/chkconfig/actions/workflows/codeql.yml/badge.svg)](https://github.com/fedora-sysv/chkconfig/actions/workflows/codeql.yml)