diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2023-12-31 15:57:31 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-01-08 22:16:29 +0100 |
commit | 5fb97b682ef07bee5142844edadf2c6dffc7c2d4 (patch) | |
tree | de2939bdccb032946933aaac5ca5d30c6d163d2d | |
parent | 787905a585ba2ccb80d80c1d52dbea716085ec6a (diff) |
Don't run other CI jobs if HTML tests fail
Prevents wasting resources when failed HTML tests are found.
-rw-r--r-- | .github/workflows/build.yml | 77 |
1 files changed, 42 insertions, 35 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8511ad45..ece39541 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,43 @@ name: CI on: [push] jobs: + ubuntu-latest-html-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Install dependencies + run: sudo apt install -y libfltk1.3-dev libssl-dev xvfb x11-apps x11-utils imagemagick + + - name: autogen + run: ./autogen.sh + - name: Make install dir + run: mkdir install + - name: configure + run: ./configure --prefix=$(readlink -f install) --enable-html-tests + - name: make + run: make + - name: make install + run: make install + - name: Copy config to .dillo + run: | + mkdir -p ~/.dillo/ + cp install/etc/dillo/* ~/.dillo/ + - name: make check + run: | + export DILLOBIN=$(readlink -f install/bin/dillo) + make check || (cat test/html/test-suite.log; false) +# - name: Remove pipes +# run: find test/html -type p -delete || true +# - name: Archive production artifacts +# uses: actions/upload-artifact@v3 +# with: +# name: upload-html-test-results +# path: | +# build/test/html ubuntu-latest-no-tls: + needs: ubuntu-latest-html-tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -22,6 +58,7 @@ jobs: - name: make distcheck run: make distcheck ubuntu-latest-mbedtls2: + needs: ubuntu-latest-html-tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -40,6 +77,7 @@ jobs: - name: make distcheck run: make distcheck ubuntu-latest-openssl-3: + needs: ubuntu-latest-html-tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -58,6 +96,7 @@ jobs: - name: make distcheck run: make distcheck ubuntu-20-04-openssl-1-1: + needs: ubuntu-latest-html-tests runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v1 @@ -76,6 +115,7 @@ jobs: - name: make distcheck run: make distcheck macOS-13-openssl-1-1: + needs: ubuntu-latest-html-tests runs-on: macos-13 steps: - uses: actions/checkout@v1 @@ -94,6 +134,7 @@ jobs: - name: make distcheck run: make distcheck macOS-13-openssl-3: + needs: ubuntu-latest-html-tests runs-on: macos-13 steps: - uses: actions/checkout@v1 @@ -114,6 +155,7 @@ jobs: - name: make distcheck run: make distcheck freebsd-14-openssl-3: + needs: ubuntu-latest-html-tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -136,38 +178,3 @@ jobs: make make check ldd src/dillo - ubuntu-latest-html-tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - name: Install dependencies - run: sudo apt install -y libfltk1.3-dev libssl-dev xvfb x11-apps x11-utils imagemagick - - - name: autogen - run: ./autogen.sh - - name: Make install dir - run: mkdir install - - name: configure - run: ./configure --prefix=$(readlink -f install) --enable-html-tests - - name: make - run: make - - name: make install - run: make install - - name: Copy config to .dillo - run: | - mkdir -p ~/.dillo/ - cp install/etc/dillo/* ~/.dillo/ - - name: make check - run: | - export DILLOBIN=$(readlink -f install/bin/dillo) - make check || (cat test/html/test-suite.log; false) -# - name: Remove pipes -# run: find test/html -type p -delete || true -# - name: Archive production artifacts -# uses: actions/upload-artifact@v3 -# with: -# name: upload-html-test-results -# path: | -# build/test/html |