From 5d202c2eca8c30f958d6d17b33fa5045a93c5220 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 13 Mar 2021 18:24:05 +0100 Subject: ci: use two different jobs for in-memory/filesystem tests --- .github/workflows/main.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33f29e7..5b3bf4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: version: master - run: zig fmt --check *.zig - build: + test-in-memory: strategy: matrix: os: [ubuntu-latest] @@ -36,11 +36,27 @@ jobs: with: version: master - - name: Build - run: zig build + - name: Run Tests in memory + run: zig build test -Din_memory=true + + - name: Run Tests in memory using the bundled SQLite + run: zig build test -Din_memory=true -Duse_bundled + + test-with-filesystem: + strategy: + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: goto-bus-stop/setup-zig@v1 + with: + version: master - name: Run Tests with filesystem run: zig build test -Din_memory=false - - name: Run Tests in memory - run: zig build test -Din_memory=true + - name: Run Tests with filesystem using the bundled SQLite + run: zig build test -Din_memory=false -Duse_bundled -- cgit v1.2.3