Skip to content

Commit

Permalink
yaml-testsuite: update to zig master, add CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
sencrash committed Oct 22, 2024
1 parent 8d960ce commit 97f09be
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
38 changes: 27 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,30 @@ jobs:
os: [macos, ubuntu, windows]

steps:
- if: matrix.os == 'windows'
run: git config --global core.autocrlf false
- uses: actions/checkout@v2
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v1
with:
version: master
- run: zig fmt --check src
- run: zig build test
- run: zig build run
- if: matrix.os == 'windows'
run: git config --global core.autocrlf false
- uses: actions/checkout@v2
with:
submodules: true
- uses: mlugg/setup-zig@v1
with:
version: master
- run: zig fmt --check src
- run: zig build test
- run: zig build run
spec-test:
name: YAML Test Suite
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macos, ubuntu]

steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: mlugg/setup-zig@v1
with:
version: master
- run: zig build test -Denable-spec-tests
4 changes: 2 additions & 2 deletions test/spec.zig
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ pub fn path(spec_test: *SpecTest) std.Build.LazyPath {

const Testcase = struct { name: []const u8, path: []const u8, result: union(enum) { expected_output_path: []const u8, error_expected, none }, tags: std.BufSet };

fn make(step: *Step, prog_node: std.Progress.Node) !void {
_ = prog_node;
fn make(step: *Step, make_options: Step.MakeOptions) !void {
_ = make_options;

const spec_test: *SpecTest = @fieldParentPtr("step", step);
const b = step.owner;
Expand Down

0 comments on commit 97f09be

Please sign in to comment.