mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Restore unit tests
This commit is contained in:
parent
74b48192e4
commit
7a40c4584e
2 changed files with 20 additions and 21 deletions
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
|
@ -27,21 +27,21 @@ jobs:
|
|||
- name: Check compatibility with old Zig compilers
|
||||
run: ci/compat.sh
|
||||
|
||||
# test:
|
||||
# name: Unit Tests
|
||||
# strategy:
|
||||
# matrix:
|
||||
# os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
# runs-on: ${{ matrix.os }}
|
||||
# timeout-minutes: 30
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v3
|
||||
#
|
||||
# - name: Setup Zig
|
||||
# uses: goto-bus-stop/setup-zig@v2
|
||||
# with:
|
||||
# version: master
|
||||
#
|
||||
# - name: Run unit tests
|
||||
# run: zig build test
|
||||
test:
|
||||
name: Unit Tests
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Zig
|
||||
uses: goto-bus-stop/setup-zig@v2
|
||||
with:
|
||||
version: master
|
||||
|
||||
- name: Run unit tests
|
||||
run: zig build test
|
||||
|
|
|
@ -210,9 +210,8 @@ pub fn build(b: *Build) !void {
|
|||
}
|
||||
ziglings_step.dependOn(prev_step);
|
||||
|
||||
// Disabled, see issue 272
|
||||
// const test_step = b.step("test", "Run all the tests");
|
||||
// // test_step.dependOn(tests.addCliTests(b, &exercises));
|
||||
const test_step = b.step("test", "Run all the tests");
|
||||
test_step.dependOn(tests.addCliTests(b, &exercises));
|
||||
}
|
||||
|
||||
var use_color_escapes = false;
|
||||
|
|
Loading…
Reference in a new issue