From 989f2c4b9d33bdc4580128c1cf890aeeec2611e0 Mon Sep 17 00:00:00 2001 From: "Abdel @ StarkWare" Date: Fri, 20 Oct 2023 13:00:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20reenable=20test=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 182dcb0e..4fe87526 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Docs +name: Test on: push: @@ -17,5 +17,31 @@ jobs: with: zig-version: master - - name: Generate docs - run: zig test -femit-docs=./docs src/lib.zig + - name: Build + run: zig build + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Zig + uses: korandoru/setup-zig@v1 + with: + zig-version: master + + - name: Lint + run: zig fmt --check src/*.zig + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Zig + uses: korandoru/setup-zig@v1 + with: + zig-version: master + + - name: Test + run: zig build test --summary all