From 101aeef1a643ec5ef8be065f866f795d5e095aef Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 13 Mar 2021 18:23:48 +0100 Subject: ci: also trigger the github workflow if C files are modified --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.github') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55a57c0..33f29e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,9 +4,13 @@ on: push: paths: - '**.zig' + - '**.c' + - '**.h' pull_request: paths: - '**.zig' + - '**.c' + - '**.h' workflow_dispatch: jobs: -- cgit v1.2.3 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(-) (limited to '.github') 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