1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00
zap/.github/workflows/mastercheck.yml
2023-05-07 16:59:38 +02:00

44 lines
1.2 KiB
YAML

name: Works with Zig master
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
ci:
strategy:
matrix:
# platform: [ubuntu-latest, windows-latest, macos-latest]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: wget
uses: wei/wget@v1
with:
args: https://github.com/zigzap/facil.io/archive/refs/tags/zap-0.0.8.tar.gz
- name: Check zig version
run: zig version
- name: hack build.zig.zon
run: |
mv build.zig.zon build.zig.zon.moved && mv build.zig.zon.localhost build.zig.zon && python -m http.server &
sleep 3
zig build
- name: Build simple endpoint example
run: zig build endpoint --verbose
- name: Build authentication tests
run: zig build test-authentication
- name: Build http parameter tests
run: zig build test-httpparams