Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
privat committed Jun 25, 2024
1 parent ef84fba commit 6cd0962
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -96,13 +96,18 @@ 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
run: sudo apt-get update && sudo apt-get install -y $BASIC_PACKAGES
- 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()
Expand Down Expand Up @@ -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'

0 comments on commit 6cd0962

Please sign in to comment.