From 6cd0962a8a702c2e8ea9290a63e602a2f3115689 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 24 Jun 2024 20:47:37 -0400 Subject: [PATCH] wip --- .github/workflows/makefile.yml | 43 ++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 2afc38a7b9..db8c81d9e2 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -7,7 +7,7 @@ env: # BASIC_PACKAGES is used fo the basic tools (make) BASIC_PACKAGES: build-essential ccache libgc-dev graphviz libunwind-dev libreadline-dev pkg-config # MORE_PACKAGES is used for more tools and libs (make more) - MORE_PACKAGES: libcurl4-openssl-dev libevent-dev openjdk-17-jdk-headless libgles-dev libegl-dev libsdl2-dev libsdl2-mixer-dev libsdl2-gfx-dev libsdl2-net-dev libsdl2-ttf-dev libgtk-3-dev inkscape postgresql libmongoc-dev libxdg-basedir-dev gettext + MORE_PACKAGES: libcurl4-openssl-dev libevent-dev openjdk-17-jdk-headless libgles-dev libegl-dev libsdl2-dev libsdl2-mixer-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-net-dev libsdl2-ttf-dev libgtk-3-dev inkscape postgresql libmongoc-dev libxdg-basedir-dev gettext jobs: build: @@ -96,6 +96,9 @@ jobs: nitunit-some: runs-on: ubuntu-latest needs: [build] + strategy: + matrix: + engine: [nitcg nitcg nitcs nitcsg nitce niti] steps: - uses: actions/checkout@v4 - name: Install dependencies @@ -103,6 +106,8 @@ jobs: - run: git fetch origin # Ensure origin/master is present - uses: actions/download-artifact@v4 - run: chmod +x bin/* + - run: cd tests && ./search_tests_git.sh origin/master HEAD > list + - run: cd tests && ./tests.sh --engine ${{ matrix.engine }} `cat list` - run: make nitunit-some - uses: actions/upload-artifact@v4 if: success() || failure() @@ -240,4 +245,38 @@ jobs: - run: lscpu || true - run: git log --oneline --graph --decorate | head -n 50 - run: cat /etc/issue - - run: sudo misc/jenkins/install-more.sh + - run: cat /etc/os-release + + + nitunit-services: + runs-on: ubuntu-latest + needs: [build] + services: + postgres: + image: postgres + env: + POSTGRES_HOST_AUTH_METHOD: trust + mongo: + image: mongo + neo4j: + image: 'neo4j:2.3' + env: + NEO4J_AUTH: none + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y $BASIC_PACKAGES $MORE_PACKAGES + - uses: actions/download-artifact@v4 + - run: chmod +x bin/* + - run: bin/nitunit lib/mongodb lib/neo4j lib/postgresql + - uses: actions/upload-artifact@v4 + if: success() || failure() + with: + path: '*.xml' + name: nitunit-services + - uses: EnricoMi/publish-unit-test-result-action@v2 + if: success() || failure() + with: + files: "*.xml" + comment_mode: off + check_name: 'nitunit-services Results'