|
7 | 7 | # BASIC_PACKAGES is used fo the basic tools (make)
|
8 | 8 | BASIC_PACKAGES: build-essential ccache libgc-dev graphviz libunwind-dev libreadline-dev pkg-config
|
9 | 9 | # MORE_PACKAGES is used for more tools and libs (make more)
|
10 |
| - 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 |
| 10 | + 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 |
11 | 11 |
|
12 | 12 | jobs:
|
13 | 13 | build:
|
@@ -96,13 +96,18 @@ jobs:
|
96 | 96 | nitunit-some:
|
97 | 97 | runs-on: ubuntu-latest
|
98 | 98 | needs: [build]
|
| 99 | + strategy: |
| 100 | + matrix: |
| 101 | + engine: [nitcg nitcg nitcs nitcsg nitce niti] |
99 | 102 | steps:
|
100 | 103 | - uses: actions/checkout@v4
|
101 | 104 | - name: Install dependencies
|
102 | 105 | run: sudo apt-get update && sudo apt-get install -y $BASIC_PACKAGES
|
103 | 106 | - run: git fetch origin # Ensure origin/master is present
|
104 | 107 | - uses: actions/download-artifact@v4
|
105 | 108 | - run: chmod +x bin/*
|
| 109 | + - run: cd tests && ./search_tests_git.sh origin/master HEAD > list |
| 110 | + - run: cd tests && ./tests.sh --engine ${{ matrix.engine }} `cat list` |
106 | 111 | - run: make nitunit-some
|
107 | 112 | - uses: actions/upload-artifact@v4
|
108 | 113 | if: success() || failure()
|
@@ -240,4 +245,38 @@ jobs:
|
240 | 245 | - run: lscpu || true
|
241 | 246 | - run: git log --oneline --graph --decorate | head -n 50
|
242 | 247 | - run: cat /etc/issue
|
243 |
| - - run: sudo misc/jenkins/install-more.sh |
| 248 | + - run: cat /etc/os-release |
| 249 | + |
| 250 | + |
| 251 | + nitunit-services: |
| 252 | + runs-on: ubuntu-latest |
| 253 | + needs: [build] |
| 254 | + services: |
| 255 | + postgres: |
| 256 | + image: postgres |
| 257 | + env: |
| 258 | + POSTGRES_HOST_AUTH_METHOD: trust |
| 259 | + mongo: |
| 260 | + image: mongo |
| 261 | + neo4j: |
| 262 | + image: 'neo4j:2.3' |
| 263 | + env: |
| 264 | + NEO4J_AUTH: none |
| 265 | + steps: |
| 266 | + - uses: actions/checkout@v4 |
| 267 | + - name: Install dependencies |
| 268 | + run: sudo apt-get update && sudo apt-get install -y $BASIC_PACKAGES $MORE_PACKAGES |
| 269 | + - uses: actions/download-artifact@v4 |
| 270 | + - run: chmod +x bin/* |
| 271 | + - run: bin/nitunit lib/mongodb lib/neo4j lib/postgresql |
| 272 | + - uses: actions/upload-artifact@v4 |
| 273 | + if: success() || failure() |
| 274 | + with: |
| 275 | + path: '*.xml' |
| 276 | + name: nitunit-services |
| 277 | + - uses: EnricoMi/publish-unit-test-result-action@v2 |
| 278 | + if: success() || failure() |
| 279 | + with: |
| 280 | + files: "*.xml" |
| 281 | + comment_mode: off |
| 282 | + check_name: 'nitunit-services Results' |
0 commit comments