mirror of
https://github.com/zigzap/zap.git
synced 2025-10-21 07:34:08 +00:00
removed localhost hack from CI
This commit is contained in:
parent
0c18565cea
commit
e8c9e866cd
2 changed files with 47 additions and 12 deletions
47
.github/workflows/mastercheck-localhost.yml
vendored
Normal file
47
.github/workflows/mastercheck-localhost.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
name: Works with Zig master (localhost patch)
|
||||||
|
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 all examples
|
||||||
|
run: ./build_all.sh
|
||||||
|
- name: Run authentication tests
|
||||||
|
run: zig build test-authentication
|
||||||
|
- name: Run http parameter tests
|
||||||
|
run: zig build test-httpparams
|
||||||
|
- name: Run sendfile tests
|
||||||
|
run: zig build test-sendfile
|
||||||
|
|
12
.github/workflows/mastercheck.yml
vendored
12
.github/workflows/mastercheck.yml
vendored
|
@ -22,20 +22,8 @@ jobs:
|
||||||
- uses: goto-bus-stop/setup-zig@v2
|
- uses: goto-bus-stop/setup-zig@v2
|
||||||
with:
|
with:
|
||||||
version: master
|
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
|
- name: Check zig version
|
||||||
run: 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 all examples
|
- name: Build all examples
|
||||||
run: ./build_all.sh
|
run: ./build_all.sh
|
||||||
- name: Run authentication tests
|
- name: Run authentication tests
|
||||||
|
|
Loading…
Add table
Reference in a new issue